fix: semi-transparent images

This commit is contained in:
mcolonna 2024-04-03 14:49:07 +02:00
parent 5103cbf709
commit a7deecf072
37 changed files with 7397 additions and 7816 deletions

View file

@ -3,10 +3,10 @@
2. cd to a directory where there is *only* .png files (or subdirectories)
3. Execute
```sh
for PNG in $(find . -type f)
for PNG in $(find . -type f -name "*.png")
do
convert "$PNG" "${PNG%.png}.xpm"
convert "$PNG" -alpha export "${PNG%.png}.alpha.xpm"
convert "$PNG" -alpha opaque "${PNG%.png}.xpm"
convert "$PNG" -alpha extract "${PNG%.png}.alpha.xpm"
rm "$PNG"
done
```