Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting JPEG colorspace (Adobe RGB to sRGB) on Linux

I am generating thumbnails and medium sized images from large photos. These smaller photos are for display in an online gallery. Many of the photographers are submitting JPEG images using Adobe RGB. I have been asked if the thumbnail and medium size images can use sRGB as the images as is appear "flat" in some browsers.

I'm currently using ImageMagick to create the smaller versions. It has a -colorspace option, but that doesn't seem to do what I want.

Is there any other way to do this? Also, do you think this is worthwhile?

like image 870
Dave Avatar asked May 03 '09 18:05

Dave


People also ask

Can you convert Adobe RGB to sRGB?

Converting Adobe RGB to sRGB in Lightroom And Photoshop Whether you use Photoshop or Lightroom, it's very simple to convert your color space. Just note that you can convert Adobe RGB to sRGB successfully, but not vice versa. In Lightroom, go to > Preferences. Choose the > External Editing tab at the top of the menu.

Can a JPEG be Adobe RGB?

When you shoot a JPEG, the information gets saved as either Adobe RGB or sRGB, depending on what you choose. The RAW file will always have all the information, so liken it more to Adobe RGB, at least in what is refered to in this article.

Is Adobe RGB or sRGB better?

sRGB gives better (more consistent) results and the same, or brighter, colors. Using Adobe RGB is one of the leading causes of colors not matching between monitor and print. sRGB is the world's default color space. Use it and everything looks great everywhere, all the time.


1 Answers

You can use the ImageMagic -profile option:

convert image.jpg -profile <adobe.icc> -profile <sRGB.icc> new_image.jpg

See here for more details: http://www.imagemagick.org/Usage/formats/#color_profile.

like image 143
HaBaLeS Avatar answered Nov 09 '22 11:11

HaBaLeS