Copy link to clipboard
Copied
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
Shouldn't that be..
if ( DocumentMode.RGB != app.activeDocument.mode && DocumentMode.CMYK != app.activeDocument.mode ) {
ConditionalModeChangeToRGB();
}
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Shouldn't that be..
if ( DocumentMode.RGB != app.activeDocument.mode && DocumentMode.CMYK != app.activeDocument.mode ) {
ConditionalModeChangeToRGB();
}
Copy link to clipboard
Copied
Yes it should, thanks for the catch
Copy link to clipboard
Copied
Yep - that worked - thanks so much
Find more inspiration, events, and resources on the new Adobe Community
Explore Now