pnm2png.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. # -- grayscale
  3. ./pnm2png basn0g01.pgm basn0g01.png
  4. ./pnm2png basn0g02.pgm basn0g02.png
  5. ./pnm2png basn0g04.pgm basn0g04.png
  6. ./pnm2png basn0g08.pgm basn0g08.png
  7. ./pnm2png basn0g16.pgm basn0g16.png
  8. # -- full-color
  9. ./pnm2png basn2c08.ppm basn2c08.png
  10. ./pnm2png basn2c16.ppm basn2c16.png
  11. # -- palletted
  12. ./pnm2png basn3p01.ppm basn3p01.png
  13. ./pnm2png basn3p02.ppm basn3p02.png
  14. ./pnm2png basn3p04.ppm basn3p04.png
  15. ./pnm2png basn3p08.ppm basn3p08.png
  16. # -- gray with alpha-channel
  17. ./pnm2png -alpha basn6a08.pgm basn4a08.pgm basn4a08.png
  18. ./pnm2png -alpha basn6a16.pgm basn4a16.pgm basn4a16.png
  19. # -- color with alpha-channel
  20. ./pnm2png -alpha basn6a08.pgm basn6a08.ppm basn6a08.png
  21. ./pnm2png -alpha basn6a16.pgm basn6a16.ppm basn6a16.png
  22. # -- grayscale
  23. ./pnm2png rawn0g01.pgm rawn0g01.png
  24. ./pnm2png rawn0g02.pgm rawn0g02.png
  25. ./pnm2png rawn0g04.pgm rawn0g04.png
  26. ./pnm2png rawn0g08.pgm rawn0g08.png
  27. ./pnm2png rawn0g16.pgm rawn0g16.png
  28. # -- full-color
  29. ./pnm2png rawn2c08.ppm rawn2c08.png
  30. ./pnm2png rawn2c16.ppm rawn2c16.png
  31. # -- palletted
  32. ./pnm2png rawn3p01.ppm rawn3p01.png
  33. ./pnm2png rawn3p02.ppm rawn3p02.png
  34. ./pnm2png rawn3p04.ppm rawn3p04.png
  35. ./pnm2png rawn3p08.ppm rawn3p08.png
  36. # -- gray with alpha-channel
  37. ./pnm2png -alpha rawn6a08.pgm rawn4a08.pgm rawn4a08.png
  38. ./pnm2png -alpha rawn6a16.pgm rawn4a16.pgm rawn4a16.png
  39. # -- color with alpha-channel
  40. ./pnm2png -alpha rawn6a08.pgm rawn6a08.ppm rawn6a08.png
  41. ./pnm2png -alpha rawn6a16.pgm rawn6a16.ppm rawn6a16.png