How to make the background of a eps file to be transparent?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo » 2006-07-29T09:32:47-07:00

I no nothing about eps format or using Imagemagick in windows and can not test this.

convert origin.eps -transparent white transparent.eps

User avatar
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony » 2006-07-29T23:01:47-07:00

You can make eps files transparent in conversion to images by two steps.

First you need a extra line in the eps file so IM can correctly determine the delegate calls it can use, and secondally you need a -channels RGBA before reading in the eps.

See ... postscript
for how I modified a PS file and later read it in with transparent background.
EPS is handled exactly the same way as PS
Anthony Thyssen -- Webmaster for ImageMagick Example Pages

Post Reply