How to change BoundingBox of EPS?
Posted: 2012-09-29T07:00:47-07:00
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.
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.