php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26254 Inaccuracy in imagecopyresized
Submitted: 2003-11-14 14:10 UTC Modified: 2003-11-25 15:35 UTC
From: rc at opelgt dot org Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.4 OS: Mac OS X 10.2.8
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-11-14 14:10 UTC] rc at opelgt dot org
Description:
------------
My value for the destination height is correct. The 
result on screen is one pixel too small.

Kind regards, R?diger


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-16 11:43 UTC] rc at opelgt dot org
The upper left corner was placed correctly but the 
height was one pixel too small.
I have updated to 4.3.4 R1 and it seems to be ok now.
 [2003-11-16 13:13 UTC] iliaa@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 [2003-11-17 07:48 UTC] rc at opelgt dot org
The bug is still existing in 4.3.4 R1.
So in PHP5 it is solved?
 [2003-11-17 08:22 UTC] rc at opelgt dot org
When the destination image is created with 
imagecreatetruecolor the behaviour seems to be ok.
So the bug is obviously for a palette based image.
 [2003-11-17 22:48 UTC] sniper@php.net
What was the configure line you used? 

 [2003-11-18 03:27 UTC] rc at opelgt dot org
I used the downloadable version of www.entropy.ch with 
an installer. So I didnt change something of that. Here 
is what phpinfo tells about the configuration command:

'./configure' '--prefix=/usr/local/php' '--with-config-
file-path=/usr/local/php/lib' '--with-apxs' '--with-
iconv=/usr/local/php' '--with-openssl=/usr' '--with-
zlib=/usr' '--with-mysql' '--with-pgsql=/Users/marc/
cvs/entropy/php-module/build/postgresql-build' '--
enable-cgi' '--with-gd' '--with-png-dir=/usr/local/php' 
'--with-freetype-dir=/usr/local/php' '--with-t1lib=/
usr/local/php' '--with-jpeg-dir=/usr/local/php' '--
with-tiff-dir=/usr/local/php' '--with-curl=/usr/local/
php' '--with-mcal=/usr/local/php' '--with-mcrypt=/usr/
local/php' '--with-mhash=/usr/local/php' '--with-
pdflib=/usr/local/php' '--with-imap=../imap-2002d' '--
with-imap-ssl=/usr' '--with-expat-dir=/usr/local/php' 
'--with-gettext=/usr/local/php' '--with-dom=/usr/local/
php' '--with-dom-xslt=/usr/local/php' '--with-dom-
exslt=/usr/local/php' '--with-xslt-sablot=/usr/local/
php' '--with-mssql=/usr/local/php' '--enable-xslt' '--
with-ldap' '--with-xmlrpc' '--with-xml' '--with-iodbc' 
'--enable-sockets' '--enable-dbx' '--enable-dbase' '--
enable-trans-sid' '--enable-exif' '--enable-wddx' '--
enable-ftp' '--enable-mbstring'
 [2003-11-18 15:13 UTC] sniper@php.net
Provide a complete (and short as possible) example script which we can use to try and reproduce this ourselves.
Also, if this happens with specific images, provide URLs to those too.

 [2003-11-25 15:35 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 18:01:35 2024 UTC