0

I have an raster image like this. That I would like to convert into an svg. enter image description here

I tried the Image Trace option in Illustrator thinking that it would makes colored squares on top of a black box but that does not work and just turns the whole image into a black shape.

I need it to convert into a vector because it turns into this when embedded into a pdf. enter image description here

I'm open to any solution other than converting it to a vector if it makes it look like the first picture inside a pdf. The pdf was generated using Latex if that information helps. The original image is here if required.

9

2 Answers 2

1

I would try the following image trace options. You want to make sure your corners are set to 100%. The end result is about 41kb SVG.

image trace options

I think it turns out pretty good.

Demo

Demo zoom in

You could also try Object -> Create Object Mosaic. You will have to mess around with the amount of tiles you use.

1
  • 1
    Create Object Mosaic worked perfectly for me. I couldn't get the image trace to work with the parameters as you showed. My image just turns into a black shape. Video is here if you want to take a look.
    – Rashiq
    Apr 7, 2021 at 15:29
0

Personally I think tracing this image as vector graphic is a bit overkill.

If converted to a png file with a reasonable resolution (quick way: just take a screenshot of the zoomed in tiff image):

enter image description here

your pdf reader should not have problems displaying the image:

enter image description here

(including it as image will avoid all problems with all these "thin line enhancements" features etc. most pdf viewers have switched on by default)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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