Page 1 of 1

EPS to PNG additional white border to right and top

Posted: 2013-01-10T04:15:27-07:00
by Swillys
When converting some EPS files to PNG, some have an additional row/column of white pixels to the right and top of the image.

From reading about it, it appears to be a bounding box problem, whereas IM is not using the high res bounding box.
All previous threads seem to say the bug/problem was fixed in a previous version.

Original EPS: https://docs.google.com/open?id=0B9E5YK ... kc5MGhudTg

Outputted PNG: https://docs.google.com/open?id=0B9E5YK ... 0RYQlVsdE0

Commands used:
-density 300 input.eps -profile "C:\Program Files\ImageMagick\Adobe ICC Profiles\CMYK\PSO_LWC_Improved_eci.icc" -profile "C:\Program Files\ImageMagick\Adobe ICC Profiles\RGB\sRGB_IEC61966-2-1.icc" -colors 256 output.png

Am using IM 6.8.1 Q16 (64-bit) and GhostScript 9.06.

Re: EPS to PNG additional white border to right and top

Posted: 2013-01-10T11:51:22-07:00
by fmw42
This is similar to another recent post regarding pdf, see viewtopic.php?f=1&t=22563.

Try using -trim and -border to add back some border if appropriate. Try the following You can modify it to put in your profiles, etc


convert -density XX image.epx -trim -bordercolor white -border YY +repage -density ZZ PNG8:image.png