Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Image Processor applying Adobe RGB profile

New Here ,
Nov 04, 2009 Nov 04, 2009

Image Processor thru CS4 64bit is changing my CMYK files to Adobe RGB when saving as jpg.

I have 'Include ICC Profile' checked.

It is not running any other action.

Could someone enlighten me as to why this is happening please?

And if there is some code I can change to force it to retain my chosen profile?

Hope someone can help

Thanks

TOPICS
Actions and scripting
671
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Nov 05, 2009 Nov 05, 2009

Shouldn't that be..

if ( DocumentMode.RGB != app.activeDocument.mode && DocumentMode.CMYK != app.activeDocument.mode  ) {
                ConditionalModeChangeToRGB();
            }

Translate
Adobe
Guru ,
Nov 05, 2009 Nov 05, 2009

I had a look at the version that ships with CS4. There is a function named 'this.saveFile'. That function has an if statement 'if ( this.params["jpeg"] )' and finially in the if statement there is another if block... ( line 1551 )

            if ( DocumentMode.RGB != app.activeDocument.mode ) {
                ConditionalModeChangeToRGB();
            }

If you change that to...

            if ( DocumentMode.RGB != app.activeDocument.mode || DocumentMode.CMYK != app.activeDocument.mode  ) {
                ConditionalModeChangeToRGB();
            }

The scirpt should now save your jpgs as cmyk if the doc is cmyk or rgb for other modes

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 05, 2009 Nov 05, 2009

Shouldn't that be..

if ( DocumentMode.RGB != app.activeDocument.mode && DocumentMode.CMYK != app.activeDocument.mode  ) {
                ConditionalModeChangeToRGB();
            }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 05, 2009 Nov 05, 2009

Yes it should, thanks for the catch

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 05, 2009 Nov 05, 2009
LATEST

Yep - that worked - thanks so much

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines