How to change BoundingBox of 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
etrader
Posts: 13
Joined: 2012-09-29T06:53:04-07:00
Authentication code: 67789

How to change BoundingBox of EPS?

Post by etrader »

I convert images (e.g. PNG, TIFF, etc) to EPS with convert command. Size in vector images is almost meaningless, but EPS has BoundingBox to set the default image size. ImageMagick set the BoundingBox from the original image size. I want to set a custom BoundingBox for the final EPS file.

The simplest way is to open the EPS file with text editor and edit the value of BoundingBox, but the problem is that EPS files are usually very huge, and it is not comfortable to open and edit them in text editor.

I am looking for a command line to set the BoundingBox?

One may think that the original file can be resized before converting to EPS, but since it is just matter of setting the vector frame box, it is not worth of image resampling to resize.
Post Reply