Help me rid my jpgs of this nasty color profile.
January 1, 2010 11:14 AM   Subscribe

How can I get rid of a custom color profile from my .jpgs without changing their color?

Hello, I have a series of .jpgs I would like to stitch together into a time-lapse video. Unfortunately it seems my camera added a custom color profile to the .jpgs, and even though I was able to make the video my brilliant blues have turned into dull green/yellows. Even though image viewers see the picture correctly, during the encoding process the colors get messed up.

What options do I have in getting rid of the custom color profile (I'm not sure that is what it is, I was told that by someone)? I tried using imagemagick to convert to .png, but it still had the custom color profile causing it to look poorly in the video, so I'm not sure what to do next.

posted by khelvan to Computers & Internet (6 answers total) 1 user marked this as a favorite
Most image applications like Photoshop or Gimp have a way to let you convert to a new color profile. In Photoshop (I have CS3), choose "Edit -> Convert to Profile." For your purposes, you probably want sRGB (which is usually listed as sRGB followed by a bunch of numbers and letters).

I don't have Gimp, but some Googling reveals you could try Image > Mode > Convert to Color Profile.

In both cases, you'll also see an "Assign Profile" option. Always use "Convert" instead of "Assign". Convert does extra math to actually convert from one profile to another, giving you want you want. Assign simply sticks a new profile label on the old image, which won't change anything.
posted by fremen at 11:58 AM on January 1, 2010

Hi fremen, thank you for your answer - I forgot to mention that I have 4500 images, so I have to have some way of batch converting them.
posted by khelvan at 12:03 PM on January 1, 2010

Have you tried using imagemagick to simply remove the color profile?

convert -strip a.jpg b.jpg
posted by demiurge at 12:30 PM on January 1, 2010

gimp can do batch jobs, any action you can do in the GUI can be called from a non interactive script.

Here is a decent tutorial on gimp scripting.
posted by idiopath at 1:17 PM on January 1, 2010

This tutorial focuses more on using gimp in batch mode.

Between the two what you want should be straightforward.
posted by idiopath at 1:21 PM on January 1, 2010

So, this actually sounds like the video compression you're using is altering the colors, not the color profile of the individual photo files. If the screen the photos are viewed on are showing the colors correctly, then your color profile is fine.

More or less, a color profile lets an image know what surface/screen it will be displayed on, and what adjustments are needed to create a consistent true color. For example, some papers are slightly magenta tinted, or some projectors a bit bluer. All of these come with color profiles. So, if your photos are looking true on your screen, your color profile is fine and you don't need to change it.

Your problem will come when you take these individual frames, and convert them to video. You can't really just take photos and make them frames in a video. At any given moment in a video you are seeing a fraction of a frame, (unlike film). To do this for us we have finishing video formats, like NTSC. Problem is, these formats all have their own limitations. NTSC is known for having a low saturation range, which sounds like your problem.

What is your ultimate goal? Web video, HDTV screen? Try some other video formats, less compression and larger file size.
posted by fontophilic at 6:43 PM on January 1, 2010

« Older Keeping Aluminum free of scratches   |   Buying tires Newer »
This thread is closed to new comments.