Preserving Color Profile for Renditions
Posted: 2016-12-31T13:22:59-07:00
Hello,
I am working on an IM script. The intent is to auto populate renditions from master files (incl. .TIF, .PSD, .JPG). One rendition is to generate CMYK. I've successfully created the various renditions using this script:
@echo off
set ORIGINAL_FOLDER=.\original-assets
set RENDITION_FOLDER=.\renditions
for /f %%A in ('dir /B %ORIGINAL_FOLDER%') DO (
echo Generating Renditions for %%A...
::* Generate 300 dpi CMYK Rendition
convert %ORIGINAL_FOLDER%/%%A -define jpeg -density 300 -colorspace CMYK -gravity center %RENDITION_FOLDER%/300CMYK/%%A_300CMYK.jpg
::* Generate 300 dpi RGB Rendition
convert %ORIGINAL_FOLDER%/%%A -define jpeg -density 300 -colorspace RGB -gravity center %RENDITION_FOLDER%/300RGB/%%A_300RGB.jpg
::* Generate 150 dpi RGB Rendition
convert %ORIGINAL_FOLDER%/%%A -define jpeg -density 150 -colorspace RGB -gravity center %RENDITION_FOLDER%/150/%%A_150.jpg
::* Generate 72 dpi Rendition
convert %ORIGINAL_FOLDER%/%%A -define jpeg -density 72 -colorspace RGB -gravity center %RENDITION_FOLDER%/72/%%A_72.jpg
)
HOWEVER, the resulting color is off.
In Photoshop, for example, when I save the .PSD as a .JPG, I make the following choices:
Include Layers
Embed Color Profile: US Sheetfed Coated v2
No Compression
Interleaved Pixel Order
Layer Compression: RLE
How do I get the correct color profile in my resulting renditions?
I've tried adding: -profile USSheetfedCoasted.icc , but did not specify a profile path. this did not work.
I also tried adding -profile sRGB just after the -define, then -colorspace sRGB - strip at the end. this did not work.
This is a command line script which will be run by an enterprise program when finalized.
Thank you!
I am working on an IM script. The intent is to auto populate renditions from master files (incl. .TIF, .PSD, .JPG). One rendition is to generate CMYK. I've successfully created the various renditions using this script:
@echo off
set ORIGINAL_FOLDER=.\original-assets
set RENDITION_FOLDER=.\renditions
for /f %%A in ('dir /B %ORIGINAL_FOLDER%') DO (
echo Generating Renditions for %%A...
::* Generate 300 dpi CMYK Rendition
convert %ORIGINAL_FOLDER%/%%A -define jpeg -density 300 -colorspace CMYK -gravity center %RENDITION_FOLDER%/300CMYK/%%A_300CMYK.jpg
::* Generate 300 dpi RGB Rendition
convert %ORIGINAL_FOLDER%/%%A -define jpeg -density 300 -colorspace RGB -gravity center %RENDITION_FOLDER%/300RGB/%%A_300RGB.jpg
::* Generate 150 dpi RGB Rendition
convert %ORIGINAL_FOLDER%/%%A -define jpeg -density 150 -colorspace RGB -gravity center %RENDITION_FOLDER%/150/%%A_150.jpg
::* Generate 72 dpi Rendition
convert %ORIGINAL_FOLDER%/%%A -define jpeg -density 72 -colorspace RGB -gravity center %RENDITION_FOLDER%/72/%%A_72.jpg
)
HOWEVER, the resulting color is off.
In Photoshop, for example, when I save the .PSD as a .JPG, I make the following choices:
Include Layers
Embed Color Profile: US Sheetfed Coated v2
No Compression
Interleaved Pixel Order
Layer Compression: RLE
How do I get the correct color profile in my resulting renditions?
I've tried adding: -profile USSheetfedCoasted.icc , but did not specify a profile path. this did not work.
I also tried adding -profile sRGB just after the -define, then -colorspace sRGB - strip at the end. this did not work.
This is a command line script which will be run by an enterprise program when finalized.
Thank you!