Page 1 of 1
Images darkening after resize
Posted: 2007-10-22T04:45:43-07:00
by paulhr
Hi, I've just started to use image magic for my photography forum. A user has noticed that when an image is uploaded to the galley and after imagemagick resizes the image, the image darkens.
I've searched the forum but have not been able to find an answer.
How can I prevent this from happening?
Thanks
Re: Images darkening after resize
Posted: 2007-10-22T14:08:34-07:00
by Bonzo
I have not noticed that effect; what about adding -normalize or -contrast to your upload code ?
http://www.imagemagick.org/script/convert.php
Re: Images darkening after resize
Posted: 2007-10-22T15:30:18-07:00
by paulhr
Thanks for the reply bonzo. It seems to be a false alarm.
One of my users was comparing the uploaded image to the image being displayed in photoshop which added a custom color profile.
Re: Images darkening after resize
Posted: 2007-10-22T19:23:32-07:00
by anthony
There is also often a darkening effect associated with resizing images using gamma color correction.
The right thing to do in that situation is to remove the gamma, do the resize than re-add the gamma color correction. This is generally the case with all image processing problems, and which must be performed by the user as the gamma level is not always known.
Re: Images darkening after resize
Posted: 2007-10-23T02:31:44-07:00
by paulhr
anthony wrote:There is also often a darkening effect associated with resizing images using gamma color correction.
The right thing to do in that situation is to remove the gamma, do the resize than re-add the gamma color correction. This is generally the case with all image processing problems, and which must be performed by the user as the gamma level is not always known.
Thanks for the additional information Anthony, it's really appreciated. I'm using imagemagick with photopost pro and will check this with the developers to get this implemented if they can so any code changes I make do not get overwritten with photopost version updates.
I'll have a quick look at their code first to see what they are doing.
Thanks again.