0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00
penpot/experiments/scripts
2020-06-18 20:08:46 +02:00
..
images
animate-output-template.svg
black_1600x800.ppm
black_3600x2700.ppm
combine.xslt
combine_frames.xslt
palette.ppm
process.sh
quantize.sh
readme.txt
trace-output.svg
trace-output.svg.gz
trace.sh

These scripts assume the images will be at 3600x2700, if you want a different size then you need to make an all black image of the appropriate size. Then replace the black_3600x2700.ppm with it.

Copy a folder into the directory with the images in it. It assumes the images are bmps.

make a tmp and output folder in the directory

copy a palette.ppm into the folder. This palette file should include only the colors in the color model of the image. It should also include the background or transparent color.

Then the trace.sh script needs to be updated so it includes the hex colors of the palette except for black. Do not include the background or transparent color in this list of colors.

If the size of the images is not 3600x2700 you might also have to update the animate-output-template.svg file.

To process the images run the process.sh script with the name of the directory as an argument.