I have an raster image like this. That I would like to convert into an svg.
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.
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.