Convert AI to PNG

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
mm063
Posts: 1
Joined: 2019-10-08T00:33:47-07:00
Authentication code: 1152

Convert AI to PNG

Post by mm063 »

Hi,

we are converting a line drawing AI file to bitmap (png) to print it on our product labels.
But the line thickness / width in the print result is not good enough.

I'm wondering if I can duplicate the png and overlay it with a offset of 1Pt.

Can someone help?
Thanks.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert AI to PNG

Post by snibgo »

Yes. The best way of doing this will depend on a few factors. One method, assuming you have black marks on a white background, is to composite with an offset and "composite darken" so each output pixel is the darker of the input pixels. Something like:

Code: Select all

magick in.ai ( +clone ) -geometry +1+1 -compose Darken -composite out.png
snibgo's IM pages: im.snibgo.com
Post Reply