I realize there are similar questions already posted, but none of them seem to address my issue, and I'm not getting anywhere with the man page for Imagemagick's convert. I have a simple EPS image that I want to convert to PNG. Just for the sake of completeness, here are the first few lines of the EPS file— I'm calling it myfile.eps for this example.
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 5 5 305 305
%%BeginProlog
%%EndProlog
% Particle 14
160.631 121.588 6.99204 0 360 arc closepath
0 0 1 setrgbcolor fill
And here is the image itself: Encapsulated Postscript Image Example
The image consists of a collection of blue circles. I want to convert the image from the command line to PNG with the same image dimension. When I use this command:
convert myfile.eps myfile.png
The image winds up in the lower-left corner of a PNG file that is 612x792 pixels, with a ton of white space everywhere else.
Example PNG converted from EPS
Next, I tried -crop, -resize, and various combinations of those, but this typically gives me a LOT of individual PNG files that display small portions of that overall 612x792 image. I'm pretty sure that -crop should work but I evidently have not figured out how to correctly specify the crop dimensions.
What is the trick for retaining the image's bounding box when it converts to PNG?

