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.
EPS to PNG additional white border to right and top
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: EPS to PNG additional white border to right and top
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
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