PAID: PDF color profil settings

Do you need consulting from ImageMagick experts and are willing to pay for their expertise? Or are you well versed in ImageMagick and offer paid consulting? If so, post here otherwise post elsewhere for free assistance.
DarrenPotter
Posts: 13
Joined: 2018-01-17T02:44:19-07:00
Authentication code: 1152

Re: PAID: PDF color profil settings

Post by DarrenPotter » 2018-01-22T06:48:57-07:00

I spoke to the printing company. It's definitely ok with an image, though in that case they'd prefer tif format, 300dpi and a CYMK profile. So in addition to the resizing, units, density and profile we need to convert the image from PNG to TIF right?

User avatar
fmw42
Posts: 23627
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PAID: PDF color profil settings

Post by fmw42 » 2018-01-22T11:25:57-07:00

try this

Code: Select all

pdfimages -png poster-308.pdf poster_300
convert poster_300-000.png -resize 1984x2835 -compress lzw \
-profile /Users/fred/images/profiles/sRGB.icc \
-profile /Users/fred/images/profiles/USWebCoatedSWOP.icc \
-units pixelsperinch -density 300 new_poster_300_000.tif

snibgo
Posts: 10514
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PAID: PDF color profil settings

Post by snibgo » 2018-01-22T11:40:08-07:00

DarrenPotter wrote:Fortunately the original PNGs are created on the server so we don't need to extract them from the PDF.
Good. So use that PNG. Ignore the PDF.
DarrenPotter wrote:...they'd prefer tif format, 300dpi and a CYMK profile.
Something like this:

Code: Select all

magick in.png -density 300 -profile sRGB.icc -profile USWebUncoated.icc out.tif
snibgo's IM pages: im.snibgo.com

DarrenPotter
Posts: 13
Joined: 2018-01-17T02:44:19-07:00
Authentication code: 1152

Re: PAID: PDF color profil settings

Post by DarrenPotter » 2018-01-23T02:27:18-07:00

Thanks guys. We'll give this a go and let you know the outcome!

DarrenPotter
Posts: 13
Joined: 2018-01-17T02:44:19-07:00
Authentication code: 1152

Re: PAID: PDF color profil settings

Post by DarrenPotter » 2018-03-27T06:54:28-07:00

Hi guys,

I've been swamped with other projects so haven't had chance to test things out fully until now. We're now able to convert the source PNG file to TIF using CMYK colorspace and the PSOcoated_v3.icc colour profile, which is great! I've noticed, however, that the colour between source PNG and output TIF is quite different - it's much darker.

The developers are running two commands to complete the conversion:

magick ‘poster.png’ -resize ‘img_width’x’img_height’ -units “PixelsPerInch” -density 300 -colorspace CMYK ‘poster.tif’
magick ‘poster.tif’ -profile /home/visio/public_html/PSOcoated_v3.icc ‘poster.tif’

Not sure if this is necessary or if anything is missing/incorrect. Does anything stand out or do you have any suggestion how we can prevent the colour distortion?

Darren

User avatar
fmw42
Posts: 23627
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PAID: PDF color profil settings

Post by fmw42 » 2018-03-27T10:07:13-07:00

I would avoid using -colorspace CMYK. It is not as good as using profiles only. Can you post a link to your original poster.png, so we can test with it.

Also what version of IM 7 are you using?

snibgo
Posts: 10514
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PAID: PDF color profil settings

Post by snibgo » 2018-03-27T15:21:22-07:00

As Fred says. You use "-colorspace" to do an simple conversion from sRGB (I assume) to CMYK, then assign a CMYK profile. A better method is to assign an sRGB profile, then use a second "-profile" to convert from that to a CMYK profile.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 23627
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PAID: PDF color profil settings

Post by fmw42 » 2018-03-27T15:30:18-07:00

I will add one more thing to what snibgo said. You should add the sRGB profile only if your PNG does not already have an icc or icm profile. Note, you should resize in RGB colorspace rather than CMYK.

So if no profile, then

Code: Select all

magick ‘poster.png’ -profile /home/visio/public_html/sRGB.icc -resize ‘img_width’x’img_height’ -profile /home/visio/public_html/PSOcoated_v3.icc -units “PixelsPerInch” -density 300 ‘poster.tif’
If it already has a profile, then

Code: Select all

magick ‘poster.png’ -resize ‘img_width’x’img_height’ -profile /home/visio/public_html/PSOcoated_v3.icc -units “PixelsPerInch” -density 300 ‘poster.tif’
You can check beforehand by using

Code: Select all

magick poster.png -format "%[profiles]\n" info:

DarrenPotter
Posts: 13
Joined: 2018-01-17T02:44:19-07:00
Authentication code: 1152

Re: PAID: PDF color profil settings

Post by DarrenPotter » 2018-03-27T23:36:20-07:00

Hey guys,

Fantastic feedback. Thank you!

I'll get on to checking those various points. In the meantime here's a link to the original poster: https://www.dropbox.com/s/y1t20vtag8pqh ... 4.png?dl=0.

User avatar
fmw42
Posts: 23627
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PAID: PDF color profil settings

Post by fmw42 » 2018-03-28T09:37:34-07:00

This works fine for me on IM 7.0.7.28 Q16 HDRI with no messages

magick poster.png -alpha off -profile /Users/fred/images/profiles/sRGB.icc -resize 100% -profile /Users/fred/images/profiles/USWebCoatedSwop.icc -units PixelsPerInch -density 300 poster.tif

The result looks fine to me. I turned your alpha off, since it was fully opaque. I resized 100% since I did not know your values. I used USWebCoatedSwop.icc, since I did not have your profile.

Perhaps you need to upgrade your version of IM 7.

DarrenPotter
Posts: 13
Joined: 2018-01-17T02:44:19-07:00
Authentication code: 1152

Re: PAID: PDF color profil settings

Post by DarrenPotter » 2018-03-29T08:03:11-07:00

Hey Fred,

We are using ImageMagick 7.0.7-22 Q16. The command we're now using is:

Code: Select all

magick ‘poster.png’ -alpha off -profile /home/visio/public_html/sRGB.icc -resize ‘img_width’x’img_height’ -profile /home/visio/public_html/PSOcoated_v3.icc -units “PixelsPerInch” -density 300 ‘poster.tif’ 
I'm still getting the colour distortion though, so I wonder if it has something to do with the icc profile. You can see the image here:

https://www.dropbox.com/s/c7n9jm8ao88tf ... s.png?dl=0

The larger image in the background is the source PNG, the slightly smaller image offset to the right is the processed tif and the block of blue is to illustrate the intended result for the background colour (look along the bottom edge) and you should see the difference pretty clearly.

Here's the icc profile we're using: https://www.dropbox.com/s/4ngdmvawe3ltf ... 3.icc?dl=0

Would you mind seeing if you get the same result? If so, then I guess that means we've nailed the command, but I'll need to follow up with the printing company.

Thanks once again for your help!!

Darren

User avatar
fmw42
Posts: 23627
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PAID: PDF color profil settings

Post by fmw42 » 2018-03-29T08:51:55-07:00

Both these commands work fine for me. I am using IM 7.0.7-28 on Mac OSX.

magick poster.png -alpha off -profile /Users/fred/images/profiles/sRGB.icc -resize 100% -profile /Users/fred/images/profiles/USWebCoatedSwop.icc -units PixelsPerInch -density 300 poster1.tif

magick poster.png -alpha off -profile /Users/fred/images/profiles/sRGB.icc -resize 100% -profile /Users/fred/desktop/PSOcoated_v3.icc -units PixelsPerInch -density 300 poster2.tif

What is your version of LCMS? I am using lcms2 @2.8_0

Try upgrading that or upgrade IM 7.

See http://www.littlecms.com

DarrenPotter
Posts: 13
Joined: 2018-01-17T02:44:19-07:00
Authentication code: 1152

Re: PAID: PDF color profil settings

Post by DarrenPotter » 2018-04-03T10:09:54-07:00

Hey Fred,

We had very recent versions of both, though have updated to be on the safe side. Which sRGB.icc file are you using? There are a few to choose from it seems (e.g. http://www.color.org/srgbprofiles.xalter). Could be we aren't using the same ones.

Darren

User avatar
fmw42
Posts: 23627
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PAID: PDF color profil settings

Post by fmw42 » 2018-04-03T10:35:29-07:00

To be honest I am not sure. I think it is v2 from http://color.org/srgbprofiles.xalter. Here is the one I used, but since it is not labeled fully, I don't know if I had it on my system or got it elsewhere.

http://www.fmwconcepts.com/misc_tests/sRGB.icc.zip

snibgo
Posts: 10514
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PAID: PDF color profil settings

Post by snibgo » 2018-04-03T11:07:24-07:00

wrote:I'll get on to checking those various points. In the meantime here's a link to the original poster: https://www.dropbox.com/s/y1t20vtag8pqh ... 4.png?dl=0
I downloaded that file, poster-424.png. It is grayscale. So where does the blue come from?
snibgo's IM pages: im.snibgo.com

Post Reply