Get icc-profile from a image

Is ist possible to get the ICC-profile of a image
I try this with  a Adobe RGB 1998 with embeded profile:
alert(app.activeDocument.selection[0].graphics[0] .profile);
alert(app.activeDocument.selection[0].graphics[0] .space);
But it only return  "Emdeded" for .profile and "RGB" for .space. But i want it to return adobe rgb 1998
Is it possible?

I can't think nothing better than temporarily open the link in Photoshop and get its embedded profile from there:
#target indesign
#targetengine "session"
if (!BridgeTalk.isRunning("photoshop")) {
     alert("Photoshop is not running.");
else {
     var link = app.selection[0].graphics[0].itemLink;
     CreateBridgeTalkMessage(link.filePath);
function CreateBridgeTalkMessage(filePath) {
     var bt = new BridgeTalk();
     bt.target = "photoshop";
     var script = GetProfile.toString() + "\r";
     script += "GetProfile(\""  + filePath + "\");";
     bt.body = script;
     // $.writeln(script);
     bt.onResult = function(resObj) {
          var result = resObj.body;
          DisplayProfile(result);
     bt.send(100);
function GetProfile(filePath) {
     try {
          app.displayDialogs = DialogModes.NO;
          var psDoc = app.open(new File(filePath));
          var prof = app.activeDocument.colorProfileName;
          psDoc.close(SaveOptions.DONOTSAVECHANGES);
          app.displayDialogs = DialogModes.ALL;
          return prof;
     catch(err) {
          psDoc.close(SaveOptions.DONOTSAVECHANGES);
          app.displayDialogs = DialogModes.ALL;
function DisplayProfile(result) {
     alert( "Color profile is \"" + ((result == "undefined") ? "Not embedded" : result) + "\"");

Similar Messages

  • Get ICC Profile name of image in INDD

    Hi,
    How I can get the Profile name associated to a RGB/CMYK image in InDesign?
    The properties profile of image return Embedded instaed of name of ICC profile (Example Adobe RGB (1998)).
    From link palette this info is available...
    Stefano

    Hi,
    I found the solution using the power of Sips:
    try
        set pathImmagine to "Snow Leopard:Users:stefano:Desktop:roman16_06_yellow.tif"
         set profileName to do shell script "sips -g profile " & quoted form of (POSIX path of pathImmagine) & " | fgrep profile | sed  's/  profile: //g'"
    on error msg number errnum
        set profileName to "ND"
    end try
    Very fast even with big images.
    But like Adobe as added the intelligent new Parent page property, this property must be added in InDesign
    Stefano Cappello

  • How to get ICC Profile from Illustrator.Document ?

    I am using CS5 SDK and I have an Illustrator.Document object.  I want to get the path to the ICC profile(s) associated with that document (RGB, CMYK, Greyscale).  How can I get to those?
    Thanks,
    ...Matt

    A little, since I'm a C++ guy
    That said, I've looked through the headers and there's slim pickings on ICC profiles. I seem to recall others have asked similar questsions and run into problems with the lack of API support.
    The only thing I can find is this in AIOverrideColorConversion.h:
    AIAPI AIErr ( *GetWSProfile )( const ASUInt32 whichProfile, AIColorProfile *profile );
    AIAPI ASUInt32  ( *GetOpenPolicy )(AIColorProfile *profile, ASUInt32 colorModel, ASBoolean isLink, ASBoolean linkHasMultipleProfiles);
    AIAPI AIErr ( *GetProfileData ) (const AIColorProfile profile, ASUInt32 *size, void *data );
    AIAPI AIErr ( *GetProfileName) (const AIColorProfile profile, ai::UnicodeString& profileName ) ;
    There's documentation associated with those calls, but pasting them is a problem because the editor interprets the tabs as tables
    Does that sound like what you want? If so, check out that header and look up those methods -- see if what they describe sounds useful. Presumably there's something similar somewhere in the C# API.

  • 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?

  • Why the image I get is different from the image I see on SpeedGrade???

    the image I get is different from the image I see on SpeedGrade???
    As the pic shows, the left one is what i get from speedgrade, and the right one is what i get after rending it out.

    Welcome to the world of the QuickTime Gamma Shift. In short: Apple is dispaying your video wrong. It actually happens with there own software (Final Cut Pro) as wel...
    Google for "QuickTime Gamma Shift" and see if you can find a workflow that works for you.

  • Remove color profile from an image

    How to remove color profile from an image is it possible through any script?
    Manual Try - Don't Color Manage this Document: option is used to instruct Photoshop to remove an existing embedded profile but when I save the file, close and open it I still see a color profile in the embedded image.

    On the mac you could have sips do this (it may depend on the file type). You would loose the files creator if Photoshop was its last editor though.

  • To get a picture from an image structure

    Hi,
    I want to do a SubVI that displays an image in a picture control.
    The input is:
    an image structure (as a cluster)
    The output is:
    a picture control (with the image to display)
    I'm using the ImageToArray.vi, and I can display a flatten or an unflatten
    pixmap. The problem is that I need the palette of the Image, and I don´t
    know how to look for it.
    Is it possible to get the palette from a image structure?
    Thanks,
    Miguel.

    Miguel wrote in article
    <7qggv4$5mq$[email protected]>...
    > I want to do a SubVI that displays an image in a picture control.
    >
    > The input is:
    >
    > an image structure (as a cluster)
    What "image structure" do you have? What is the format from which you
    extracted this "image structure"? Maybe it's a file, then what format is it
    in?
    > The output is:
    >
    > a picture control (with the image to display)
    >
    > I'm using the ImageToArray.vi, and I can display a flatten or an
    unflatten
    > pixmap. The problem is that I need the palette of the Image, and I don´t
    > know how to look for it.
    >
    > Is it possible to get the palette from a image structure?
    Depends from where you got your "image structure".
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • ICC profile from SmugMug not showing up in LR Color Managment

    I've installed the two standard ICC print profiles from the SmugMug website.  One is for EZPrints and the is Bay Photo  http://www.smugmug.com/help/choice-of-printing-labs
    Both are installed correctly and show up in the correct Win 7 directory.  However, only the BayPhoto driver is shown in the LR dialog.
    Any ideas why?
    Thanks

    I have no idea why the EZprints one doesn't show up, but you should realize that there is little point in using them in Lightroom. The technicians at both Bay Photo and EZprints actually have told me that the icc profiles they have on their website are useless as there is no guarantee that your image will get printed on the machine the profile was made for. They have many machines and paper types and that one profile is therefore useless. Secondly, both labs color manage, which means that you can just send them sRGB or adobeRGB jpegs and as long as they are correctly tagged (which Lightroom always does) they will convert them to the correct printing profile for you. Lastly, Lightroom does not have any soft proofing without hacks, so you cannot even use the profiles for that purpose.

  • Getting icc profiles into lightroom

    I have downloaded profiles from epson for my 3800 printer, profiles for red river paper.  They do not show up in LR print module.  They do however, show up in Photoshop print module.  What am i doing wrong?

    maybe not.  how do i check to see if the profiles are RGB or CYMK?  will RGB profiles still print well on my SP3800?
    Double click the profile. It should open in Colorsync utility. In the Header section you should see under "Space" whether it is RGB or CMYK. The profile should also be of class Output. All of RR's profiles that I have used were RGB and work fine in Lightroom. You don't want CMYK profiles for a inkjet printer that uses more than 4 inks and for that reason profiles for such printers are rarely CMYK. So the profiles are probably in the wrong spot or you have a problem icc profile in the profiles folder that trips up Lightroom. You can fix such problems by running profile first Aid in Colorsync Utility. If you don't see where to do that, open a new window in the Utility. In this utility you can also see which profiles are correctly installed in the profiles section.

  • How to get icc profil?

    hi,
    I would to get the icc profil of a document in my plugin. But i don't find the method to set it.

    Which command throws the exception? Try the following:
    for (int j=0; j<eleNum; j++)
        pdeElement = PDEContentGetElem(pdeContent, j);
        if (PDEObjectGetType((PDEObject)pdeElement) == kPDEImage)
            PDEImage theImage = (PDEImage) pdeElement;
            PDEColorSpace theColorSpace = PDEImageGetColorSpace(theImage);
            ASAtom cpName = PDEColorSpaceGetName(theColorSpace);
            const char* colorSpaceName = ASAtomGetString(cpName);
            AVAlertNote(colorSpaceName);

  • Get digital signature from TIFF image

    Hi,
    How can we get digital signature from the scanned TIFF image?
    Thanks,
    Susila S

    Do you mean a X.509 certificate or a digitalized image?
    If its the first one, i don't think you can do it with Livecycle Alone.
    If its the second one, anything from Paint to Corel will do.

  • Change the profile from an image to a document

    When I scan a document it saves in my computer as an image and I want it to be a document.  When it is a document it gives me the option to save multiple documents in one file but I can't get it back there.  It has some how been changed.  Now it scans as a picture so something that could have been one file has 10 images. 

    Hi  I may be able to help you with DeskJet 1512 and your scanning inquiry. When you scan, are you using the HP printer software on the computer? It can be tricky with a printer that only has flatbed scanner glass. To make sur you are in the correct software;Click the Windows icon ()Click All ProgramsClick the HP folderClick the DeskJet 1512 folderThen click HP Scan  This will give you different scan options but these seem to be the ones you need;Save as PDF ... this can be a multiple page documentSave as JPEG ... will be individual image files In this same window you will also want to make sure Show Scan Preview is checked like the above image. When you click Save as PDF, and click the Scan Button - this will save it into one file;
    (If you choose Save as JPEG in the scan settings - it will separate all the files into individual images. )  Once the first page of your scan if complete, put the second page on the scanner glass and click the   button in the bottom left corner of the screen. When all of the pages are showing on the left thumbnail display, click Save.  As long as you have the file type set to PDF, it will save all of the pages as one file.    Please let me know if these steps resolved your issue, or if there is anything else I can do to help.  I look forward to hearing from you!   Thanks, 

  • Can no longer get IP profile from BT Wholesale Spe...

    As per the subject- after reading around seems to pretty common - any chance it can be fixed? 
    Upon trying the following message is presented:
    "Your speed test has completed and the results are shown above, however during the test an error occurred while trying to retrieve additional details regarding your service. As a result we are unable to determine if the speed you received during the test is acceptable for your service. Please re-run the test if you require this additional information."
    Same on all platforms/browsers...
    Any help appreciated...

    Hi Phil_w,
    Try this http://www.speedtest.btwholesale.com/PerformanceTesterWS/diagnostics.do
    It should tkae you stright to the further diagnostics.
    Best regards,
    dfenceman

  • ICC profiles from iMac to laptop

    I use Aperture on a MacBook and an iMac. I print on an Epson R280 connected to the iMac. The ColorSync options for the Epson appear in my dialog box on the iMac, but do not on the laptop. How do I import them to the Aperture running on my laptop?

    Thank you for your reply.
    To carry out your suggestion do I connect my laptop to my computer via a firewire?
    Thanks in anticipation
    Barry

  • Read ICC profile information of an image

    Dear community,
    for my further implementation I need some information about the ICC profile used for an actual image edited inside Photoshop. How can I read the ICC informations about an image?
    I am implementing an export plug-in and found some ICC component inside the ExportRecord struct, called:
    Handle iCCprofileData; /**< Handle containing the ICC profile for the image. (NULL if none.)
                                                Photoshop allocates the handle using the Photoshop handle suite.
                                                The handle is unlocked while calling the plug-in.
                                                The handle is valid from  \c ExportSelectorStart to \c ExportSelectorFinish
                                                Photoshop frees the handle after \c ExportSelectorFinish. */
    int32 iCCprofileSize; /**< Size of profile. */
    int32 canUseICCProfiles; /**< Non-zero if the host can accept or export ICC profiles .
                                                If this is zero, the plug-in should not set or dereference \c iCCprofileData. */
    What I am not understand:
    How can I read the iCCprofileData and which information will be delivered by the iCCprofileSize?
    For iCCprofileData I got int values like @179952120 or @179952176. They differ for every loaded image. Seems that I just read the memory address. The "Handle" points to an empty char '\0'. I have no idea how to work with the datatype "Handle" correctly ...
    For the iCCprofileSize I got integer values like 544 for the embedded profile Adobe RGB (1998), 3144 for the working color space sRGB IEC61966-2.1 or also 3144 for the embedded profile without color management:
    embedded profile  = Adobe RGB (1998) -> iCCprofileSize = 544 (or sometimes 560)
    working color space = sRGB IEC61966-2.1 -> iCCprofileSize = 3144
    embedded profile = without color management -> iCCprofileSize = 3144
    embedded profile = SWOP2006_Coated3v2 -> iCCprofileSize = 2747952
    working color space = Coated FOGRA39 (ISO 12647-2:2004) -> iCCprofileSize = 654352
    embedded profile = without color management -> iCCprofileSize = 654352
    The variable canUseICCProfiles delivers always the value 1. As well if I selected the embedded profile without color management.
    Can I infer from the iCCprofileSize which profile will be used by each image?
    Does somebody has more experience with these there members (iCCprofileData, iCCprofileSize and canUseICCProfiles) of the struct ExportRecord?
    I would be grateful for some hints.
    King regards,
    Silver

    hai,
    i paste the java source code for getting each pixel value of an image.i think that this code is usefull to you.
    import java.awt.image.PixelGrabber;
    import java.awt.Toolkit;
    import java.awt.Image;
    class getpixel2
    public static void main(String args[]) throws Exception
    Image image = Toolkit.getDefaultToolkit().getImage("D:\\one.jpg");
    if(image==null)
    System.out.println("NO FIle");
    PixelGrabber grabber = new PixelGrabber(image, 0, 0, -1, -1, false);
    if (grabber.grabPixels())
    int width = grabber.getWidth();
    int height = grabber.getHeight();
    if (isGreyscaleImage(grabber))
    byte[] data = (byte[]) grabber.getPixels();
    else
    int[] data = (int[]) grabber.getPixels();
    for(int i=0;i<data.length;i++)
    int r = (data[i] >> 16) & 0xff;
    int g = (data[i] >> 8) & 0xff;
    int b = (data[i] >> 0) & 0xff;
    System.out.println("(R,G,B)=("+r+","+g+","+b+")");
    public static final boolean isGreyscaleImage(PixelGrabber pg)
    return pg.getPixels() instanceof byte[];
    }

Maybe you are looking for

  • System don`t check an order number for CO account assignment

    hi, I have this problem. When I creta a sales order in CRM and then system creates as a follow up document a sales order in SD system don`t check an order number for CO account assignment. If I want to create a sales order not as a follow up document

  • Why won't my JQuery AJAX Work?

    I've used AJAX and JQUERY AJAX before, but I can't get it working in Dreamweaver with a test PhoneGap site.  I'm pasting in my code below.  I put some alerts in, one to let me know the event got inside the "change" fuction (that works).  Then I have

  • OC4J 9.0.4 + Struts 1.1

    Hi, I'm upgrading my web applications from OC4J (1.0.2.2) to OC4J 9.0.4. Also, upgrading from JDK 1.3.1 to JDK 1.4.2. I use Struts 1.1 as my framework.I have an issue with the <logic:present> tags. These don't seem to work with OC4J 9.0.4. For the JS

  • Updateable PK in tabularform

    Hi How to update a primarykey useing a tabular form? Ex Table Batch PK ARTICLE_ID + BATCH_CODE and 5 additional columns BATCH_CODE is updateable when trying to update/change BATCH_CODE I recieve ORA-20001: ORA-20001: Current version of data in databa

  • Modified KnockKnockClient as a type of Telnet

    I modified the KnockKnockClient.java from Sun's custom networking tutorial found here: http://java.sun.com/docs/books/tutorial/networking/index.html I'm submitting this for those of us who need a good start on making a Telnet-like client. I've added