Keeping the ICC Profile

Hi,
I need to load an image, perform some transformations to it and save it as JPEG. But I've noticed some color issues. Not perceptible when you look at it on the monitor screen, but perceptible when printing it an looking at the picture.
What I noticed is that if an ICC profile is assigned to the image, then Java wil take it out.
I've tried both JAI and Java 2D but both of them ripps the ICC pofile from the image.
I also tried something as simple as loading an image an saving it as JPEG without any transformation but the ICC profile isn't there after saving it.
The JAI code I'm using it is as follows:
        PlanarImage pi = JAI.create("fileload", imagePath);
        JAI.create("filestore", pi.getAsBufferedImage(), outPath, "jpeg");And the Java 2D is:
        Image image = ImageIO.read(new File(imagePath));
        int width = image.getWidth(null);
        int height = image.getHeight(null);
        double factor = 1.0;
        if ((width < MIN_WIDTH || width < MIN_HEIGHT)) {
            factor = MIN_WIDTH / (float) width;
        } else if (width > MAX_WIDTH || height > MAX_HEIGHT) {
            factor = MAX_WIDTH / (float) width;
        int newWidth = (int) (image.getWidth(null) * factor);
        int newHeight = (int) (image.getHeight(null) * factor);
        BufferedImage out = new BufferedImage(newWidth, newHeight,
                                              BufferedImage.TYPE_INT_RGB);
        AffineTransform transform = new AffineTransform();
        transform.scale( ( float )factor, ( float )factor);
        Graphics2D g = out.createGraphics();
        g.drawImage(image, transform, null);
        FileOutputStream fileOut = new FileOutputStream( new File ( outPath ) );
        JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder( fileOut );
        JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam( out );
        param.setQuality( 0.95f, true);
        encoder.setJPEGEncodeParam( param );
        encoder.encode( out );Can you point me what I'm doing wrong?
Is there something I'm not considering?
Does Java takes the ICC profile when loading the image or when saving it?
Thanks!!!

The most recent version I've seen was pretty clear in the documentation:
"ICC profile, not implemented in this version of Photoshop"
So the image you send needs to be sRGB
Sandy

Similar Messages

  • Could not complete the paste command because the icc profile is invalid

    Hi. In PS CS4 & AI CS4.
    I get the following error when I try to copy & paste a logo from Illustrator into Photoshop:
    could not complete the paste command because the icc profile is invalid
    I don't understand because the color settings are sychronized. I do this all the time. I have not received this error before.
    Thanks.

    I received the file from my client. However, last week I had no trouble pasting the same file into a PSD file, as a smart object.
    The color file is a label mechanical, which I place into a PSD file of the product. These are used for print ads and web graphics. The color is very critical and has worked really well for the last 4 years.
    I have used the default color settings in Creative Suite and its been working fine. They are in synch and, I have no idea how to re-assign the color profile. I’m a graphic Designer, color correction is not something I would do normally.
    Ron

  • "Could not complete the custom command because the ICC profile is invalid"

    I got the above message when I attempted to soft-proof an image in Photoshop CC on Windows 7 64-bit. 
    I had downloaded the ICC profile from drycreekphoto.com, specifically:
    http://www.drycreekphoto.com/icc/Profiles/IccFiles/Arizona/Costco-AZ-Tucson-NW-Lus.icc
    and installed it by right-clicking on the downloaded file and selecting "Install profile"
    Windows installed the profile in the following directory:
    C:\Windows\System32\spool\drivers\color
    Then in Photoshop CC, I did
    View -> Proof setup -> Custom
    But when I selected the above profile from the dropdown list, I got error message
    "Could not complete the custom command because the ICC profile is invalid"
    Does this mean that the profile is really invalid, or am I doing something wrong?
    FYI I am new to color management.  This was my first attempt to soft proof an image.

    I can't quite figure out how it got that way - it has part of an ICC profile structure, but quite a bit wrong.  Even debugging tools can't read it as an ICC profile.
    It's probably the one file - let drycreek/costco know so they can replace it.

  • When I try to paste an CCI file into  a PSD, I get this message-   Could not complete the Paste command because the ICC profile is invalid. I need the layer to be an editable smart object! What's the solution?  Ron

    When I try to paste an CCI file into  a PSD, I get this message…   Could not complete the Paste command because the ICC profile is invalid.
    I need the layer to be an editable smart object! What's the solution?
    Ron

    I received the file from my client. However, last week I had no trouble pasting the same file into a PSD file, as a smart object.
    The color file is a label mechanical, which I place into a PSD file of the product. These are used for print ads and web graphics. The color is very critical and has worked really well for the last 4 years.
    I have used the default color settings in Creative Suite and its been working fine. They are in synch and, I have no idea how to re-assign the color profile. I’m a graphic Designer, color correction is not something I would do normally.
    Ron

  • I can't print a photo because the ICC profile is not installed.  What do I do?

    I can't print a photo because the ICC profile is not installed.  What do I do?

    Try from the Editor "Save As"
    Then choose jpeg with sRGB profile.

  • Lightroom doent see the .icc profile - color profiles

    Lightroom 5 doent see the .icc profile -they are in the correct folder  C:\Windows\System32\spool\drivers\color -
    it sees some but not all -
    I have tried everything - even installing Lightroom again.
    Nothing seems to work
    I am running windows 7 professional 64 bits
    please help. I have now spent a week working on this - and have not found any solution.
    many thanks
    regards

    Do you have a link to the page(s) where you’re downloading your profiles from?
    LR only support RGB profiles, not CMYK profiles, if that could be the issue.
    If there is a limitation on how many profiles LR can display then you should be able to delete some of the unnecessary profiles—the ones you’ve downloaded but don’t need.  Don’t delete other profiles that might be used in other areas, just the ones you’ve downloaded for this situation.
    On my Windows 7 computer, I see ICC profiles in the following places:
    C:\Windows\System32\spool\drivers\color\   are most of them and I’m sure LR finds some in here
    C:\Windows\System32\color\  are a couple of them

  • Unable to load the ICC profile

    So a few weeks ago I switched from windows XP to windows vista (i think).
    After that whenever I load images from my nikon d90 into pse or ps5 it's I get
    an error message stating it is unable to read the icc profile. I then have to manually
    pick the icc profile for each image. I then switched back to windows XP and I am
    still getting the same error.
    This is making me crazy. How do I fix this?!

    Hi Roy,
    This document explains exactly what you would like to do...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50018d40-d370-2910-3ba7-aa83038d257a
    If the link is no more valid just make a search on ''how to extend user details"...
    Regards,
    Fabian

  • How to select the printer and select the ICC profile for printing with VBScript?

    I try to automate my printing procedure in photoshop. The problem is that I don't know how to select the printer and select the icc profile for printing with vbscript like I manually do in the print-menu in photoshop?
    Anyone has done this before?
    Thanx!
    jus

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

  • How do I install custom printer profiles in Mac os mountain lion. I can.t fine the icc profiles directory (if that's what it is).

    How do I install custom printer profiles in Mac os mountain lion. I can't find the icc profiles directory (if that's what it is).

    NOTE: In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder. You'll need to do it again after each system update that's applied.
    OT

  • Get the icc profile of an image

    Hi all,
    I'm looking for a way to get the icc profile of an image in a PDF.
    I already know the tools like Acrobat preflight … But I only can get that my PDF contents RVB images or not.
    I'm looking for a tool to return the ICC profile of all images (s'RGB, Adobe 1988, etc.).
    Have anyone an ideas?
    Thanks a lot.
    Bye

    Hi,
    I have an other question …  Sorry
    I use this tool and it help me a lot … But I still can't get the icc profil name.
    For example: the inspector return CMYK device but I would like to have Fogra 27, ISO coated v2, Swop etc.
    Do you have an ideas?

  • Where do I find the ICC profile for my new Canon Pro-100 printer?

    I  downloaded ICC profiles for several different papers, but for optimum color management, do I not also need a ICC profile for the printer itself? Very new to this......I have my ColorMunki and I use Photoshop and Lightroom. Trying to get everything coordinated properly...........
    Thanks for the help,
    Laura Mowrey

    If you downloaded ICC profiles for papers they should be for the Pro-100. The paper vendor prints a known pattern of colors using a Pro-100 and then uses a device to analyze the print. The ICC profile contains the correction info that adjusts the printer to make the prints look like the known color pattern.
    The Color Munki will calibrate your monitor to make sure that the colors you see are correct.
    I suggest you calibrate the monitor to,D50 at 80-90 lumens/m^2.
    John Hoffman
    Conway, NH
    1D Mark IV, Rebel T5i, Pixma PRO-100, MX472

  • How to set the ICC profile in LR to be the same as PS?

    Hi Adobe,
    Why do my images look much darker and contrasty in LR(4.3) then they do on PS(CS6) where they have far more tonal range? I'm looking at them side by side on the same screen. I know it has to do with ICC profiles but I can't find how you set that in LR. Any help would be appreciated. An example can be viewed here: http://mikedodd.co.uk/other/temp/Screen%20shot%202013-01-22%20at%2023.06.52.jpg You can see how much better the top (PS) image is.
    Thanks
    Mike

    I'm not familiar with that model, but don't all Coloredges come with Color navigator software and sensor? No need to use third-party calibrators, the results are guaranteed to be much better using the Eizo calibrator. I use Eizo easypix on a pair of Flexscans, and the results are vastly better than using Spyder 3 and ColorEyes Display Pro (which I also have).
    In any case the Spyder 2 is not a good sensor. It quickly got a bad reputation and rightly so (I have one sitting in the back of a drawer). Things improved tremendously with the Spyder 3, and now the 4 is out.
    The general consensus, however, is that the best "mainstream" third-party calibrator currently on the market is the x-rite i1 Display Pro. If this is what you need to use, maybe it's time to retire the Spyder 2?
    Most real-world images contain parts that are out of gamut for sRGB, you'll quickly get used to that. But it can still look good. With a little work, it's possible to make almost anything look good inside sRGB. Consider that almost all monitors have a native color space very close to sRGB. Only the so-called wide gamut monitors (I'm not sure if yours is one) exceed that. But with a standard monitor, what you see is already sRGB.
    Relative intent "hard-clips" everything outside the target space gamut, but OTOH preserves everything in-gamut unchanged. Perceptual compresses near the gamut border, sometimes resulting in slight color and tonal changes. The difference isn't dramatic, I never bother with intent, but leave it on relative and deal with clipping when necessary (that is, if you lose desired texture and detail).

  • If I erase a game and I want to play it again, do I keep the same profile?

    I have no intentions in starting over again. Because I erased some of my games (Contract Killer, Reign of Dragons, ect.) and I want to play them again. So if I download them again, do I have the same profile?

    Darn it! And if I bought a game, do I have to buy it again?

  • THE EMBEDDED ICC PROFILE CANNOT BE USED BECAUSE THE ICC PROFILE IS INVALID, IGNORING THE PROFILE."

    I keep getting this message in photoshop lately, and i cant use some of my actions, can anyone explain what causes it and if I can fix it? Is it due to a corrupt card? What damage has it done to my files if any?
    I'm not super techy so keep it nice and simples please!!!

    Hi JJMAck, thanks for the reply.  No it does not name the profile, I'll upload a jpeg here.
    Thanks

  • Could not save because the ICC profile description is invalid

    I'm getting this error whenever trying to do a "save" or "save as" from Photoshop CC. I've tried converting to different color profiles but that doesn't seem to make a difference. Even if I create a new blank document and try to save it, I get the same error message.
    I'm on a Mac running 10.8.5. Doing a search for the exact error message has come up empty. Previous versions had a similar error but it occurred upon opening a file, not saving. So if anyone has some thoughts, it would be greatly appreciated.

    Same error intermittently on different files. Windows7 64bit CS4. Saving a file in Photoshop - working from local hard drive - and got the file in use can not save error. We tried changing the name, saving as a different file type with no success. I closed absolutely every application that was running and then stopped all non windows processes from Task Manager and still file in use.
    I was finally able to save by choosing "NONE" for the preview instead of Tiff 8-bit in the save options.
    The bug is in Photoshop and it is putting a file lock on the preview file that it creates and then not alowing any save with the preview option checked.
    After saving without a preview we could close PS and reopen then open the saved file and resave with the preview selected. Closing PS unlocked the preview file.

Maybe you are looking for

  • OAM 11g: Deleted IAMSUITEAGENT by accident and now can't login to oamconsole - help!

    Hi everyone - I've deleted the IAMSUITEAGENT suite from security realm --> myrealm --> providers within the weblogic OAM admin console (hostname:port/console) and now can't log into the oamconsole (hostname:port/oamconsole). When I enter the username

  • Compile participant lists based on rulesets error [BPM 11g]

    Hi, I created a Humantask with participant lists based on rulesets, which I followed the steps in the documents: http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_hwfmodel.htm#insertedID3. The section is [To specify participant

  • Can't see the raster image in query model

    Hi, In RasterId model, I can see the raster image, the request XML is: <themes> <theme name="geor_theme" > <jdbc_georaster_query jdbc_srid="999999" datasource="scott" georaster_table="city_images" georaster_column="image" raster_id="1" raster_table="

  • Upgrading from 10.6.8

    I have a Macbook 4,1 (can't find or remember exact date) running OS X 10.6.8 but upgraded to 4GB memory.  I want to use iCloud   Can I upgrade to Mountain Lion on this computer and will that do the trick for me?

  • Deleted "High Ratings" playlist, how do I add back

    I know how to add playlists, but the high ratings playlist will update the list on the fly. I deleted that playlist (dont ask why) and now want to add it back in with the same functionality. Any one know how without having to hit re-store?