converting to a true a4 ps-page (not eps)

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
bablokb
Posts: 29
Joined: 2005-06-11T06:21:59-07:00

converting to a true a4 ps-page (not eps)

Post by bablokb »

Hi,

I would like to create an A4 PS-page (and place the image at a specified location). Using convert in a naive way:

Code: Select all

convert img.jpg -density 300 img.ps
does not work, since this produces an eps (using -page a4 just changes the image-size). Is there a solution to the problem?

Thanks, Bernhard
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: converting to a true a4 ps-page (not eps)

Post by anthony »

EPS is Postscript!!!! It is a special form of postscript known as Encapulated postscript that is. A single page. Has a bounding box defining the limits of the object drawn. and optionally a preview image.

EPS can be thought of as basically a single page postscript, and as such IM was correct in generating a eps, and you requested a ps image as eps is a ps image.

In regard to the quality of the image. Yes you are right, it is bad. I have never relied on IM postscript generator because of quality. But then I never reported it either in all my studys for IM Examples. Prehaps it is time to report the quality issue in the Bugs forum.

Remember generating eps is NOT a bug. Poor quality however is a bug
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
bablokb
Posts: 29
Joined: 2005-06-11T06:21:59-07:00

Re: converting to a true a4 ps-page (not eps)

Post by bablokb »

Yes, I know EPS is postscript and I also know the bounding-box stuff and I also know that my "naive" command produces EPS. But that was not my point (neither was the quality-stuff). My point is: how can I create a true A4 PS-page with an embedded image (say. e.g. centered, size calculated from image-size and density). It means I have something like:

%%DocumentMedia: a4 595 842 0 () ()

inside the document (so the printer knows it's A4).

BTW: cups does know how to do that but I would like to do it without actually "printing", just from within IM.

Bernhard
Post Reply