2

I have a vector file with about 150 vectors in diferent grayscale colors and I need to export image with clear edges.

For example black and white border should'nt have any aditional colours - only black and white.

enter image description here

Any thoughts would be appreciated.

4
  • Are you using Photoshop or Illustrator? you added both tags. What format are you trying to export to?
    – Luciano
    Aug 25 '17 at 12:34
  • 1
    There are many questions on this site regarding anti-alias, have you tried searching first?
    – Luciano
    Aug 25 '17 at 12:35
  • I'm using both softwares, PNG format. I actualy didn't know it's called anti-alias, thanks for tip!
    – wyy
    Aug 25 '17 at 12:43
  • 1
    The effect you wish to achieve has aliased edges that appear to be jagged due to the pixelation (rendering) of the image. This is blurred to appear straight from a greater distance with an "anti-aliasing" software routine.
    – Stan
    Aug 25 '17 at 15:42
4

The soft edges are a result of anti-aliasing. There is, as far as I'm aware, no way to export a raster image from Illustrator without anti-aliasing (although I may be wrong). You can however turn off anti-aliasing (for certain things) in Photoshop very easily...

Open up your vector file in Photoshop and uncheck "Anti-aliased" in the import dialog (and choose an appropriate pixel size etc while you're at it) and you're done.

Take this vector from Illustrator:

enter image description here

Opened in Photoshop at 60 × 60 pixels with anti-aliasing off:

enter image description here

Which gives us this:

enter image description here

2

You could try this:

Export the vector image as a PNG, but at a significantly higher resolution than you need, and then open it in Photoshop, and rescale the image smaller, making sure you set the interpolation method to "Nearest Neighbour (preserve hard edges)".

Then if necessary, you could potentially rescale the image larger again, using the same interpolation method, to give it that pixel art look.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.