Topic: Image resize and color profiles

I notice that images resized by plupload in the HTML5 runtime retain the EXIF data from the original image but ICC color profile data is stripped.

Has anyone looked into whether it is possible to preserve ICC color profiles in the resized image (for those browsers that support color profiles, like Firefox and Safari)?

It seems like it should be possible to implement this in the same way that EXIF is currently retained (e.g., extract the APP2 segment data from the original image and re-attach it to the resized image).

Re: Image resize and color profiles

@kevin, I personally never had any chance to work with ICC profiles. Could you go in more detail on that? Of course I can familiarize myself with it, but before I do, could you relate a bit more about how do you use them? Would be great to hear about real case.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Image resize and color profiles

In short, colour profiles embed colour information from image capture devices (digital cameras, scanners, etc.) that allow output devices (monitors, printers, etc.) to accurately reproduce colours when outputting an image. I won't go into too much detail as to why this is important, there are number of articles like http://www.dria.org/wordpress/archives/2008/04/29/633/ and http://gearoracle.com/guides/web-browser-color-management-guide/ that explain this better than I can, with examples.

The use case for us specifically is in a photo sharing application where we want to allow clients to upload images pulled directly from their digital camera, images which are usually tagged with the camera's ICC profile. We are currently performing server-side image resizing using ImageMagick which allows us to preserve embedded colour profiles. Colours tend to look "washed out" when colour profiles have been stripped. As another similar example, Flickr's server-side image resizing also retains colour profiles (and would I surmise most other photo management/sharing sites do as well).

Most of the major browsers support colour profiles when displaying images -- specifically, Safari and Firefox do, and IE 9 supposedly does, while Chrome, Opera, and older versions of IE currently do not.

The format for embedding ICC profiles in JPEG images (in the APP2 segment) is described in the ICC specification: http://www.color.org/icc_specs2.xalter

I may end up implementing this in plupload myself within the next few weeks, time permitting, but wanted to check here first in case someone else already had something in the works.

Re: Image resize and color profiles

Ok, thanks for clarification smile Could you also share a typical image with ICC profiles in it? Actually everything is prepared in the code, so that implementing of this feature shouldn't take too long.

Nice suggestion!

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Image resize and color profiles

Glad to here it's not difficult to implement smile

The four images from ICC's own browser test page are useful for testing purposes: http://www.color.org/version4html.xalter

Re: Image resize and color profiles

I'd be interested in this features as well.

Re: Image resize and color profiles

There is a pull request for this pending in case anyone was wondering:

https://github.com/moxiecode/plupload/pull/248

Re: Image resize and color profiles

Would love to see this in flash but I don't think it is possible.

Just to confirm, does this mean using the html5 runtime you have successfully resized an image then uploaded it whilst maintaining the original icc profile?

Have you done this with chunking/drag n' drop turned on too?

Thanks
Homer

Re: Image resize and color profiles

I believe this has been added to both html5 and flash runtimes in the 1.4.3 release.

Re: Image resize and color profiles

@jho3k as mike noted, that has been added in recent release, although I would suggest that you wait for 1.4.3.1, which I'm releasing now. Current one has mistakes in examples.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Image resize and color profiles

Absolutely superb, I have been hoping for this for ages!

For anyone reading this I have implemented the profile retainment, chunking and resizing in the Flash runtime. I have also coupled this with a Imagemagick to resize and convert the profile on upload and I believe this finally matches the quality of photoshop meaning no more droplets!

Re: Image resize and color profiles

flash the color profile is not working, an image adobe rgb loses profile and is washed

Re: Image resize and color profiles

So where can you find tops for night out?  BrandCruz.com of course!  You can find amazing date  Night tops  and dressy tops for night out in the latest trends and fashions.  BrandCruz.com also has a great selection of party dresses night out styles such as the Kari Beaded Open Back Dress by MLV.  This sequined gauze dress features a back cutout that adds a flirty touch to this mini dress.  With a simple hook and eye closure and hidden back zip you will be ready for a night out of cocktails and dancing.