I'm looking for someone with experience of ImageMagick and PDF color profiles who can help me with some configuration.
PDFs had been coming out with undefined color profiles and we are wanting to set them to sRGB.
PM me if you can help
![Smile :)](./images/smilies/icon_smile.gif)
Darren
Code: Select all
convert -colorspace sRGB -density XX image.pdf image.png
Code: Select all
convert -density XX image.pdf -profile path2/sRGB.icc image.png
Code: Select all
convert -density XX image.pdf -profile path2/USWebCoatedSWOP.icc profile path2/sRGB.icc image.png
Code: Select all
convert poster-308.pdf -profile /Users/fred/images/profiles/sRGB.icc new_poster-308.pdf
Code: Select all
pdfimages -png poster-308.pdf poster_300
convert poster_300-000.png -resize 1984x2835 -profile /Users/fred/images/profiles/sRGB.icc new_poster_300_000.pdf
That seems the best option. Extract the image with pdfimages, assign an sRGB profile, and send that to the print company.DarrenPotter wrote:Our print company gave us 3 options in descending order of preference:
1) To embed an sRGB ICC profile in the image
I did that with this file and you can see that the extracted image was larger than Imagemagick thought. When I added the profile and converted to pdf, the new default file dimensions were several times larger and the file size was huge.
Why convert it to PDF? I can't see the point in doing that.fmw42 wrote:When I added the profile and converted to pdf ...
Sorry if I was unclear. It is sRGB we want as it is our printing company's "standard". We tested CMYK as we didn't seem to be able to make progress with getting sRGB sorted in the correct way. We're having some quality issues with the CMYK version though so I want to go back to the preferred sRGB and resolve that successfully.You first post says you want to convert to sRGB. But your second post seems to imply you want cmyk. Your PDF already is sRGB with a fully opaque alpha channel. Imagemagick sees no profile associated with the PDF. EXIFTOOL shows EmbeddedImageColorSpace: DeviceRGB, which is no the same as a profile, I do not think.
where WxH is your desired pixel dimensions and XX is your desired density (resolution) in dotsperinch such that when you multiply the two you get your desired print size in inches.pdfimages -png image.pdf new image
convert newimage-000.png -resize WxH -units pixelsperinch -density XX -profile path2/sRGB.icc newimage.png
This is interesting. I'm checking with the printing company to see if they are ok with us just sending an image. I imagine the answer will depend on whether it creates more work for them or not. If not, then this is definitely the way to go. Fortunately the original PNGs are created on the server so we don't need to extract them from the PDF.As snibgo has said, you would be better extracting the image from the PDF and resizing to the pixel size you want and assign the density you want for printing as well as the color profile. Then not putting that result back into a PDF shell.