Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2KB

  1. #!/bin/sh
  2. svgfiles="src/zoom-area.svg
  3. src/zoom.svg
  4. src/zoom-in.svg
  5. src/zoom-out.svg
  6. src/cut.svg"
  7. filter=Gaussian
  8. for svgfile in ${svgfiles} ; do
  9. filename=${svgfile/%.svg/}
  10. # Imagemagick with rsvg support
  11. convert -background none -density 1200 \
  12. -define filter:blur=0.75 -filter ${filter} -resize 24x24 \
  13. "${filename}.svg" "${filename}_black.png"
  14. convert -background none \
  15. -resize 384x384 \
  16. -channel red -negate \
  17. -channel green -negate \
  18. -channel blue -negate \
  19. -define filter:blur=0.75 -filter ${filter} -resize 24x24 \
  20. "${filename}.svg" "${filename}_white.png"
  21. # Imagemagick without rsvg support
  22. #rsvg-convert -w 24 -h 24 "${filename}.svg" "${filename}-black-hd.png"
  23. #convert \
  24. # -channel red -negate \
  25. # -channel green -negate \
  26. # -channel blue -negate "${filename}-black-hd.png" "${filename}-white-hd.png"
  27. #convert -filter Sinc -background none -density 1200 -resize 24x24 "${filename}-black-hd.png" "${filename}-black.png"
  28. #convert -filter Sinc -background none -density 1200 -resize 24x24 "${filename}-white-hd.png" "${filename}-white.png"
  29. mv -f "${filename}_black.png" "${filename}_white.png" ./
  30. done