Bug #53096 [Csd->Bgs]: imagecopyresized doesn't return TRUE or FALSE

From: Date: Tue, 19 Oct 2010 16:38:18 +0000
Subject: Bug #53096 [Csd->Bgs]: imagecopyresized doesn't return TRUE or FALSE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155339@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53096&edit=1

 ID:                 53096
 Updated by:         pajoye@php.net
 Reported by:        yugenekr at gmail dot com
 Summary:            imagecopyresized doesn't return TRUE or FALSE
-Status:             Closed
+Status:             Bogus
 Type:               Bug
 Package:            GD related
 Operating System:   Linux 2.6.35-ARCH
 PHP Version:        5.3.3
 Block user comment: N

 New Comment:

Not a bug > bogus


Previous Comments:
------------------------------------------------------------------------
[2010-10-19 17:22:08] yugenekr at gmail dot com

Closed as not a bug.

------------------------------------------------------------------------
[2010-10-19 17:21:22] yugenekr at gmail dot com

Thanks a lot, I was totally stupid not using error_reporting(-1).
After seeing errors (not a jpg file and execution time exceeded), I just
had to
1.check if I process a real image/jpeg file
2.use ini_set('max_execution_time', '60');

------------------------------------------------------------------------
[2010-10-19 12:55:14] pajoye@php.net

Or please provide one image and script to reproduce your problem (one of
the 400~ failing).

------------------------------------------------------------------------
[2010-10-19 12:44:03] uramihsayibok at gmail dot com

Run your script with error_reporting(-1) and display_errors on. Look for
error 
messages.

Are you hitting a memory limit? Up memory_limit and see if that makes a

difference. If you aren't cleaning up variables (eg, using
imagedestroy()) you 
should do so.

------------------------------------------------------------------------
[2010-10-18 14:34:31] yugenekr at gmail dot com

Description:
------------
I'm getting about 650 pictures in bytes by soap and creating previews
for those 
pictures. Script works perfectly on php 5.3.2-2 (Linux Debian testing),
but stops 
unexpectedly on php 5.3.3 without any error.
I've found that script stops on function imagecopyresized. (pls, see
test script 
example) - doesn't return anything.

Test script:
---------------
if(imagecopyresized($imageResized, $imageTmp, 0, 0, 0, 0, $newWidth,
$newHeight, $width, $height)){
                echo "imagecopyresized true";
            }else{
                echo "imagecopyresized FALSE";
            }


Expected result:
----------------
1. All pictures and previews stored. (1300 files for both).
2. function imagecopyresampled return something

Actual result:
--------------
1. Only about 880 files are stored.
2. function imagecopyresampled doesn't return anything


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53096&edit=1


Thread (6 messages)

« previous php.bugs (#155339) next »