ajaydsouza / timthumb

PHP script for cropping, zooming and resizing web images
0 stars 2 forks source link

Contrast lowered when processing this specific image file #450

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Parameters: 
?src=photos%2F1%2F1370631827_behringer-harvard-group-photo.jpg&w=400&h=300

What is the expected output? What do you see instead?
Expected to see attached image to be resized as-is. Instead get actual.jpeg 
which appears to have its contrast lowered.

What version of the product are you using? On what operating system?
2.8.11 on Mac OS X

Please provide any additional information below.
Tested with multiple images. All other images seem to be fine, only this one is 
affected. Haven't noticed this with any other images being processed by 
TimThumb.

Original issue reported on code.google.com by matt.bo...@bisnow.com on 7 Jun 2013 at 7:07

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You have an embedded color profile in the image (ProPhotoRGB).  Your image has 
a typical saturation shift which appears when you fail to properly save your 
jpg properly for the web using the sRGB standard. 

Load the image in photoshop and use the Save for web option and:

1. uncheck the option to embed the color profile when saving.  
2. Also make sure to check the  "convert to sRGB" box.   

After you resave the image an run it through timthumb, the two images should 
have matching color. 

Original comment by dwil...@gmail.com on 10 Jul 2013 at 3:39

GoogleCodeExporter commented 9 years ago
GD - the image editing library used for TimThumb can't do anything with colour 
profiles so you will have to do what Dwilban mentioned above.

Original comment by BinaryMoon on 24 Oct 2013 at 6:44