Skip to main content
natrev
Legend
December 8, 2015
Answered

Convert Profile getting problem?

  • December 8, 2015
  • 3 replies
  • 1184 views

Hi,

I convert one image RGB to CMYK using Profile LAN320.icc. However the embedded profile was not tagged. its still shows untagged.

Please explain Why..?

-yajiv

This topic has been closed for replies.
Correct answer c.pfaffenbichler

Hi Chris,

Thanks for the prompt reply. Please find the screen shot images.

1. Source Image:

2. During the Profile conversion:

3. After the Profile conversion:

Profile not tagged with the LAN320 CMYK Profile...


-yajiv


Set the Color Settings to "Preserve Embedded Profiles" if they are not – I should have thought of that earlier …

3 replies

c.pfaffenbichler
Community Expert
Community Expert
December 14, 2015

If you want the Script to check for that setting you can use something like this

// 2015, use it at your own risk;

#target photoshop

var ref = new ActionReference();

ref.putProperty (stringIDToTypeID ("property"), stringIDToTypeID ("colorSettings"));

ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );

var applicationDesc = executeActionGet(ref);

var cmykPolicy = applicationDesc.getObjectValue(stringIDToTypeID("colorSettings")).getEnumerationValue(stringIDToTypeID("policyCMYK"));

alert (typeIDToStringID(cmykPolicy));

c.pfaffenbichler
Community Expert
Community Expert
December 10, 2015

Please post the (relevant section of the) Script in question.

Which format do you save the image as?

Please post a screenshot of the opened image with the statue bar set to display "Document Profile".

natrev
natrevAuthor
Legend
December 10, 2015

Hi Chris,

Thanks for you reply. I have received the RGB image and I convert to CMYK using LAN320 profile.


However the embedded profile was not tagged. its still save dialog window shows untagged.


Code:


var log=""

CheckColorProfile();

alert(log);

function CheckColorProfile(){

    var docRef = app.activeDocument;

    try{

        if(docRef.mode==DocumentMode.RGB){

            if(docRef.colorProfileName!="LAN320"){

                docRef.convertProfile("Working CMYK", Intent.ABSOLUTECOLORIMETRIC, true, true);

                log=log+"- Color profile was changed into LAN320!\n\n";

                }

            }

        }//Try

        catch(er){

            // If receive any untagged profile

            docRef.convertProfile("Working CMYK", Intent.ABSOLUTECOLORIMETRIC, true, true);

                        log=log+"- Image has untagged LAN320 color profile!\n\n"

        }

    }

c.pfaffenbichler
Community Expert
Community Expert
December 10, 2015

The Save As dialog is where one sets whether the Profile should be embedded or not. (edited)

tpk1982
Legend
December 8, 2015

Hi Yajiv,

set this boolean value as TRUE

Thanks,

karthi

natrev
natrevAuthor
Legend
December 8, 2015

Thanks for the Reply karthi,

Already I tried but its not working.

-yajiv