Mobile app version of vmapp.org
Login or Join
Ravi4787994

: How to convert every pixel of raster picture to square objects in Inkscape? i.e Every raw pixel is converted into a vector shape of the same size and colour. No distortions, etc, just raw

@Ravi4787994

Posted in: #Inkscape #PixelArt

i.e Every raw pixel is converted into a vector shape of the same size and colour. No distortions, etc, just raw pixels converted as they are. How do I do this?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi4787994

1 Comments

Sorted by latest first Latest Oldest Best

 

@Michele215

There is a python script to convert bitmaps to SVG rectangles for each pixel here: florian-berger.de/en/software/pixel2svg/.
Or, if you want to do some basic math, and have some experience with tiled clones, you can try making an array of squares that exactly match the pixels of the image, and use the color tracing option for tile clones.

I just tried this with some success. The process basically goes like this:


Import the bitmap, with no smoothing (blocky, fast rendering option).
Duplicate the image and transform the duplicate into guides, to aid you aligning things (Object -> Objects to guides). Enable node and boundary snapping.
Make a rectangle the exact size of a pixel. Alternatively, make a rectangle the size of the whole bitmap and then scale it down exactly by the number of horizontal / vertical pixels in the image (use Object -> Transform).
Align this small rectangle to the top left corner of the bitmap (use the guides for this), and remove the fill colour (no fill).
Create tiled clones of this rectangle, with simple translation, the necessary rows and columns, and color tracing enabled.
Good luck with the exact alignment of the bottom right pixels!

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme