imagemagick - Ghostscript convert PDF into large TIFF -


i want resize pdf tiff format ghostscript. use input pdf/x-3 has limitation of 5 meters in length or height.

as result, want have tiff - file correct dimensions , final resolution of 200dpi

by scaling bigger format bigtiff (e.g):

gs -sdevice=tiff32nc -dnumrenderingthreads=6 -dnopause -dbatch -dsafer \    -dpdffitpage -r2000 -dusecropbox -dusebigtiff       \    -soutputfile=example.tiff test.pdf  

edit here: first result 2000 dpi file

just trick scale correct pixels, change 200dpi exiftool:

exiftool -resolutionunit="inch" -xresolution="200" -yresolution="200" example.tiff  

i have resulting tiff 200 dpi , dimension of 72/200 times format expect.

to sure result has real expected format convert calculated format:

convert example.tiff -depth 8 -resize 70866x15748\! temp-1.tiff 

would best suitable way achieve goal?

basics steps are:

  1. convert image resolution final dimension
  2. resize target dimension , final resolution of 200 dpi

edit 1: goal scale image factor optimum results. problem is, customers deliver there data pdf , want file printed 10x big. have scale dimensions. factor 10 maximum here. e.g. customer wants banner printed 6m width 2m height. file deliver in vector format 600mm 200mm. try scale them correct dimensions in batch process.

edit 2: updated question actual status

your attempt create 708662 pixels wide , 157480 pixels high tiff crazy!

a little bit of calculation should tell these ~104 gigapixels!

given requested tiff32nc output, requires 32 bits (4 bytes) per pixel (8 bits each of requested cmyk channels).

do have 416 gigabyte of harddisk space on system, let alone 416 gigabyte of ram?!? (i'm hoping not on 32bit system...) how intend handle file further processing if indeed succeed generate it?!? graphic/image processing software start open it?!?


in short: i'm not @ surprised you're running problems when trying ghostscript produce such monster!

(also: not use -rxxx when use -gnnnxmmm. -gnnnxmmm set absolute image dimensions in pixels -- setting -rxxx @ same time useless.)

(yes, know: tiffs typically compressed. example calculation above misleading. on purpose... however, when reading compressed tiff disk, has expanded in memory in order render it....)


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -