php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24076 imagecreatejpeg() problem!
Submitted: 2003-06-07 18:10 UTC Modified: 2003-06-08 10:59 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: erwin at flashdevils dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.2 OS: Linux Redhat 7.2
Private report: No CVE-ID: None
 [2003-06-07 18:10 UTC] erwin at flashdevils dot com
Dear Sirs, 
 
We have this image upload script to the database. Before it 
uploads to MySQL it peforms a imagecreatejpeg() to temporary 
store the image as a file in a ./tmp folder. This to change the size 
of the image and than store it in the database. When the 
imagecreatejpeg() has creates a file in the temp folder the image 
has very weird colors like the colors are totaly mixed up...it looks 
ugly in the worst way...well you can still see abit whats on the 
image but thats it. 
 
When i store it with the original size so without use of 
imagecreatejpeg() everything is fine so i think it is in that. 
 
For more information and screenshots you can contact me and i'll 
be glad to send the shots or info over.  

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-08 10:59 UTC] joerg@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

When using php with gdlib 2.x you MUST use the imagecreateturcolor() function instead imagecreate() in your scaling part to avoid ugly looking colors.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC