PDF to TIF (with some peculiarity)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

PDF to TIF (with some peculiarity)

Post by myspacee »

Hello,
in my job Production, in some circumstances, it happens that pdf materials are transformed into TIF using Ad0be suite.

I post starting example : http://static.repubblica.it/laprovincia ... o/AMEL.pdf
and its TIF trasformation : http://static.repubblica.it/laprovincia ... o/AMEL.tif

Ask typography guys and tell me that set DPI to 300, and use LZW\CMYK compression to obtain TIF

Can suggest me how get the result as close as possible to the posted example ?
(above AMEL.tif)

thank you for any info,
m.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF to TIF (with some peculiarity)

Post by fmw42 »

try

Code: Select all

convert -density 300 -colorspace CMYK AMEL.pdf -compress lzw AMEL_im.tif
or perhaps slightly closer

Code: Select all

convert -density 300 -colorspace sRGB AMEL.pdf -profile /Users/fred/images/profiles/sRGB.icc -profile /Users/fred/images/profiles/USWebCoatedSWOP.icc -compress lzw  AMEL_im2.tif
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Re: PDF to TIF (with some peculiarity)

Post by myspacee »

Thank you for reply,
but I post after try command like your. IM file is bigger in size but worst visually.

In IM file letters are 'pixelated' (less defined details).

if increase geometry or density i obtain a file more bigger than example, can't solve 'mystery'...

m.

EDIT: can't see last command, try now!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF to TIF (with some peculiarity)

Post by fmw42 »

myspacee wrote:Thank you for reply,
but I post after try command like your. IM file is bigger in size but worst visually.

In IM file letters are 'pixelated' (less defined details).

if increase geometry or density i obtain a file more bigger than example, can't solve 'mystery'...

m.

EDIT: can't see last command, try now!

To get the better text resolution try the following (supersampling method)

Code: Select all

convert -density 1200 -colorspace CMYK AMEL.pdf -resize 1042x1067 \
-depth 8 -density 300 -units pixelsperinch -compress lzw AMEL_im4.tif
Or (use your own paths to your profiles in the following)

Code: Select all

convert -density 1200 -colorspace sRGB AMEL.pdf -resize 1042x1067 \
-profile /Users/fred/images/profiles/sRGB.icc -profile \
/Users/fred/images/profiles/USWebCoatedSWOP.icc \
-depth 8 -density 300 -units pixelsperinch -compress lzw AMEL_im5.tif
The colors on this actually match closer to your pdf than your tif does.


On Windows use ^ rather than \ for new line
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Re: PDF to TIF (with some peculiarity)

Post by myspacee »

Best so far :

Code: Select all

convert -density 1200 -colorspace CMYK AMEL.pdf -resize 1042x1067 -profile USWebCoatedSWOP.icc -depth 8 -density 300 -units pixelsperinch -compress lzw AMEL_im6.tif
Choose supersampling method (increase letters 'resolution')
force colorspace to CMYK
using USWebCoatedSWOP.icc (CMYK - from : http://www.adobe.com/support/downloads/ ... ftpID=3680)
boost unique colors to 221665 (instead of 83363 of first examples)

But original is alway better.

I'm forced to use CMYK to print to my factory rotary press.
I prefer to define letters with major quality. Is there another way instead supersampling ?

thank you for your time,
m.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF to TIF (with some peculiarity)

Post by fmw42 »

I prefer to define letters with major quality. Is there another way instead supersampling ?
I am not sure I understand what the remaining issue is? The supersampling should get good quality text.

You can cut the file size way down if you add -type palette. But then the colors will not be a good.
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Re: PDF to TIF (with some peculiarity)

Post by myspacee »

Black is better in my opinion and Ad0be tif had better quality on shapes.

I need to automatize process for emergency cases, but I'm surprised by the differences between yield...
I am accustomed to think IM as a remedy for all ills :)

Maybe try Ghostscript directly, but think IM use an interpreter to convert PDF/EPS/PS to image format, so i've little hope...

Thank you again,
m.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF to TIF (with some peculiarity)

Post by fmw42 »

Photoshop created tiff and so may have better software to convert to tiff. It also has color features that are not available in IM, such as spot colors and may use different profiles. So in general, I would not expect IM to reproduce anything in PS perfectly.
Post Reply