Time passes by

by clabacchio

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

Recently I came across a bunch of weird JPEGs; here's one of them.

In Firefox 16.0.2 and ACDSee it looks much more vibrant:

1

However in Internet Explorer 9/MS Paint/Paint.NET 3.5.10 (on Windows 7 64-bit) it looks quite dull in comparison and many colors also look completely different:

2

Lots of other apps have problems with the file as well. Here's the image in CDisplay for example:

3

The default browser and Photos app on my Android ICS device refuse to even display the image. Also, when I tried to upload it here I ended up with this:

4

Nice, huh‽ Here's some technical information about the image:

ExifTool Version Number         : 9.05
File Name                       : numeat_pg1.jpg
Directory                       : .
File Size                       : 1281 kB
File Modification Date/Time     : 2012:11:14 06:48:45+05:30
File Access Date/Time           : 2012:11:14 06:48:45+05:30
File Permissions                : rw-rw-rw-
File Type                       : JPEG
MIME Type                       : image/jpeg
JFIF Version                    : 1.02
Exif Byte Order                 : Little-endian (Intel, II)
Compression                     : LZW
Photometric Interpretation      : CMYK
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 4
X Resolution                    : 300
Y Resolution                    : 300
Planar Configuration            : Chunky
Resolution Unit                 : inches
Software                        : Adobe Photoshop CS3 Macintosh
Modify Date                     : 2009:11:24 11:39:46
Color Space                     : Uncalibrated
Exif Image Width                : 753
Exif Image Height               : 1130
Thumbnail Offset                : 424
Thumbnail Length                : 8043
Current IPTC Digest             : 460cf28926b856dab09c01a1b0a79077
Application Record Version      : 2
IPTC Digest                     : 460cf28926b856dab09c01a1b0a79077
Displayed Units X               : inches
Displayed Units Y               : inches
Global Angle                    : 30
Global Altitude                 : 30
Copyright Flag                  : False
Photoshop Thumbnail             : (Binary data 8043 bytes, use -b option to extract)
Photoshop Quality               : 10
Photoshop Format                : Standard
Progressive Scans               : 3 Scans
XMP Toolkit                     : Adobe XMP Core 4.1-c036 46.276720, Mon Feb 19 2007 22:13:43
Document ID                     : uuid:86F2476580DADE118414CEB96D2C8252
Instance ID                     : uuid:87F2476580DADE118414CEB96D2C8252
Native Digest                   : 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;5845CA8BEE434E1A12E4DC06C8A7E272
Creator Tool                    : Adobe Photoshop CS3 Macintosh
Create Date                     : 2009:11:24 11:39:46-08:00
Metadata Date                   : 2009:11:24 11:39:46-08:00
Format                          : image/jpeg
Color Mode                      : CMYK
ICC Profile Name                : SWOP (Coated), 20%, UCR, 280%
History                         : 
Derived From Instance ID        : uuid:E269F3C87FDADE118414CEB96D2C8252
Derived From Document ID        : uuid:D2CA5D9C5DD0DE11B0D7B511ADC90DF9
Profile CMM Type                : ADBE
Profile Version                 : 2.1.0
Profile Class                   : Output Device Profile
Color Space Data                : CMYK
Profile Connection Space        : Lab
Profile Date Time               : 2009:03:25 15:57:18
Profile File Signature          : acsp
Primary Platform                : Apple Computer Inc.
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : none
Device Model                    : 
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82489
Profile Creator                 : ADBE
Profile ID                      : 0
A To B0                         : (Binary data 395328 bytes, use -b option to extract)
A To B1                         : (Binary data 395328 bytes, use -b option to extract)
A To B2                         : (Binary data 395328 bytes, use -b option to extract)
B To A0                         : (Binary data 291144 bytes, use -b option to extract)
B To A1                         : (Binary data 291144 bytes, use -b option to extract)
B To A2                         : (Binary data 291144 bytes, use -b option to extract)
Profile Copyright               : Copyright 2009 Adobe Systems Incorporated
Profile Description             : SWOP (Coated), 20%, UCR, 280%
Gamut                           : (Binary data 37009 bytes, use -b option to extract)
Media White Point               : 0.9642 1 0.82489
DCT Encode Version              : 100
APP14 Flags 0                   : [14]
APP14 Flags 1                   : (none)
Color Transform                 : YCCK
Image Width                     : 753
Image Height                    : 1130
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 4
Image Size                      : 753x1130
Thumbnail Image                 : (Binary data 8043 bytes, use -b option to extract)

I've been informed that all these problems are thanks to the fact that the image doesn't use the default Windows/Mac sRGB color profile. Searching the net led me to this question, which seems to be the exact opposite of what I want to achieve. So I thought I'd ask here as well.

I have no plans to print these images and I do not have access to Photoshop. How can I convert all the JPEG images to sRGB, hopefully with no further quality loss? Is there any free portable command-line (highly preferable) or GUI program I can use to easily and losslessly batch convert many JPEGs to sRGB?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

It is normally the responsibility of the viewing software to convert from the color-space of the file to that of the display. From what I understand, you want to do the conversion yourself because you use programs that simply assume sRGB as a color-space.

A lossless conversion is not possible for this. On a properly calibrated system you will also make things worse because you will lose accuracy by converting to sRGB and then lose accuracy when converting to your monitor's color-space.

Nconvert can perform a lossy conversion for you:

nconvert -icc_out sRGB.icc -o <output-filename> <input-filename>

Assuming all files are in the same directory, for example you can on Linux:

foreach x (*.jpg)
    nconvert -icc_out sRGB.icc -o $x:r_srgb.jpg $x

For this you need nconvert and an icc profile for sRGB.

On Windows you will use the FOR statement. I believe there is built-in help to get the proper syntax.

share|improve this answer
    
Ah, so lossless conversion of YCCK to sRGB is not possible? If so, will the nconvert command you specified above result in minimal loss due to JPEG re-encoding? Also, will using the sRGB ICC profile allow the image to retain the vibrant colors as displayed by Firefox? –  Karan Nov 15 '12 at 3:13
1  
You are confusing two things, compression quality and the accuracy of the conversion. You will lose accuracy during this conversion even if you went to a lossless format, which you can by specifying -out png for example. You can lose less information by going to a higher-bit-depth format (say 48-bit TIFF) but your display cannot show this, so it would only be useful if you were looking to process the files. –  Itai Nov 15 '12 at 3:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.