Batch convert EPS to cropped JPG's with background color
Posted: 2011-03-28T13:03:42-07:00
Hi all,
I turned to IM for two specific tasks. At this point it's one down, one to go.
I Tried to find the info I need but I'm kinda lost on where to start, the number of options is overwhelming and I hope someone here can point me in the right direction.
Ok, so what's my goal. I have a number of EPS files that have to be converted to JPG as follows:
Original EPS looks like this:
These EPS files have whitespace surrounding the actual image. They also have a clipping path that defines the contours.
Now this is what I would like to achieve:
- The white background is to be replaced by a specific color (#FFFF32 to be exact)
- The image is to be cropped to the minimum image area
- <optional> The image is scaled down to a maximum of 1500x1500 px
Here is a link to an EPS file that has to be converted:
Bonbons (12 MB)
System info
- I'm using the DOS command prompt for now
- ImageMagick version: 6.6.8 Q16
- Ghostscript version: 9.01
- System: Windows XP Pro, SP3
Thanks in advance for the info
I turned to IM for two specific tasks. At this point it's one down, one to go.
I Tried to find the info I need but I'm kinda lost on where to start, the number of options is overwhelming and I hope someone here can point me in the right direction.
Ok, so what's my goal. I have a number of EPS files that have to be converted to JPG as follows:
Original EPS looks like this:
These EPS files have whitespace surrounding the actual image. They also have a clipping path that defines the contours.
Now this is what I would like to achieve:
- The white background is to be replaced by a specific color (#FFFF32 to be exact)
- The image is to be cropped to the minimum image area
- <optional> The image is scaled down to a maximum of 1500x1500 px
Here is a link to an EPS file that has to be converted:
Bonbons (12 MB)
System info
- I'm using the DOS command prompt for now
- ImageMagick version: 6.6.8 Q16
- Ghostscript version: 9.01
- System: Windows XP Pro, SP3
Thanks in advance for the info