php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32113 imagejpeg() not writing all files sent to it
Submitted: 2005-02-25 20:26 UTC Modified: 2005-02-26 00:41 UTC
From: agruetz at helixdevelopment dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.3.10 OS: RH ES V 3.4
Private report: No CVE-ID: None
 [2005-02-25 20:26 UTC] agruetz at helixdevelopment dot com
Description:
------------
http://devel.helixdevelopment.com/thumb_nail/main_post.php?sub=asca&gal=1

This shows what I am trying to do as you can see all images are jpegs but imagejpeg is not writing images 10 - 24 to the said path even though it does right images 1 - 9.

Thanks
Anthony Gruetzmacher
www.helixdevelopment.com
Zend Certified Software Engineer

Reproduce code:
---------------
here are the urls to the source code:

http://devel.helixdevelopment.com/thumb_nail/main.phps
http://devel.helixdevelopment.com/thumb_nail/main_post.phps
http://devel.helixdevelopment.com/thumb_nail/global/gd2_class.inc.phps

This should cover everything you need.

Expected result:
----------------
I just want imagejpeg to write all files/path I send to it ie images 10 - 24.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-25 20:33 UTC] agruetz at helixdevelopment dot com
http://devel.helixdevelopment.com/thumb_nail/global/gd2_class.inc.phps does not seem to read for some reason. So I put it @ http://devel.helixdevelopment.com/thumb_nail/global/gd2.phps I am unsure why it does not read it is very strange maybe another unreleated issue? As it including into my code ok.

Anthony
 [2005-02-25 23:47 UTC] agruetz at helixdevelopment dot com
OK the problem has been found but it still did some strange things and this fucntion may need to be audited. I was missing a .jpg file extension so it was not writing the file for 10 - 24 BUT it was writing them for the first 9 images even though they did not have the file extension. It was also returning 1 for true that the imagejpeg fucntion was working even though it was not creating the file without the .jpg file extention as it should have been. Even though my code was missing the .jpg for the file extension it still should have created the file as file_name with no extension.   Anyway hope this helps and I am not just wasting my time and yours.

Anthony Gruetzmacher
 [2005-02-26 00:41 UTC] agruetz at helixdevelopment dot com
Further investigation problem was server side not with the code or with php. Closing issue sorry to bother you all.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC