How to convert an EPS file to PNG and specify the size of the PNG?
convert file.eps -resize 800x1200 file.png
This converts the EPS but with the wrong dimensions
sample EPS file https://ufile.io/zrv3n
Either ignore aspect ratio with !
convert file.eps -resize '800x1200!' file.png
Or resize to fill, and clip to size.
convert file.eps -resize '800x1200^' -gravity Center -extent 800x1200 file.png
Other techniques covered in Resize or Scaling article.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With