42_so_long/dev/HOW_TO_IMPORT_ASSETS.md
2024-04-03 14:49:07 +02:00

318 B

How to import assets?

  1. sudo apt install magickimage
  2. cd to a directory where there is only .png files (or subdirectories)
  3. Execute
for PNG in $(find . -type f -name "*.png")
do
	convert "$PNG" -alpha opaque "${PNG%.png}.xpm"
	convert "$PNG" -alpha extract "${PNG%.png}.alpha.xpm"
	rm "$PNG"
done