We are having small site where users can upload images where we are storing original image and also cutting smaller versions (1024x768) for view purpose. There is no limitations on original image types but mostly they are jpg-s.
We are having problem where same image can look differently on browsers, depending on color profile. So, my solution was to:
1) Convert image to RGB colorspace
2) Convert colorprofile to sRGB
I thought that this will be ok for all browsers, but it's not. Some browsers are displaying differently image with sRGB color profile.
I try saving image without profile from Photoshop and those images looks ok, but i cannot recreate same process with imagemagick.
So, is there way to convert image which have sRGB profile to image without profile but to change raw data so it will look (more or less) same as with sRGB profile?
Tx
Converting ti sRGB jpeg
-
- Posts: 3
- Joined: 2011-08-23T13:29:26-07:00
- Authentication code: 8675308
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Converting ti sRGB jpeg
What browsers work correctly? Or better still what does not work right?
For example this image should be a sRGB gradient and should have about equal amounts of white and black in it when displayed. It does on my monitor and under firefox.
See IM Examples, Color Basics, sRGB Colorspace Correction
http://www.imagemagick.org/Usage/color_basics/#srgb
UPDATE: I have added a section for checking your monitor and web browser to see if it handles mid-gray colors appropriately for sRGB images.
Gamma of your Monitor
http://www.imagemagick.org/Usage/color_basics/#monitor
Have you just tried to remove the profiles? Images which have no profile should be thought of as using sRGB color space. This does not require a data change so it is better done using jhead...
or
For example this image should be a sRGB gradient and should have about equal amounts of white and black in it when displayed. It does on my monitor and under firefox.
Code: Select all
convert -size 100x100 gradient: \
-set colorspace sRGB -colorspace RGB gradient_sRGB.gif
See IM Examples, Color Basics, sRGB Colorspace Correction
http://www.imagemagick.org/Usage/color_basics/#srgb
UPDATE: I have added a section for checking your monitor and web browser to see if it handles mid-gray colors appropriately for sRGB images.
Gamma of your Monitor
http://www.imagemagick.org/Usage/color_basics/#monitor
Have you just tried to remove the profiles? Images which have no profile should be thought of as using sRGB color space. This does not require a data change so it is better done using jhead...
Code: Select all
jhead -di -dx image.jpg
Code: Select all
jhead -du image.jpg
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/