List of file formats: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 39: Line 39:


This creates SGI images with RLE compression by default.
This creates SGI images with RLE compression by default.
Here is a bash script that you can run in the ./FlightGear/Aircraft directory to generate SGI image files for all of the PNG format files you have:
#!/bin/sh
for PNG in $(find -name '*.png')
  do
  SUBDIR=$(dirname $PNG)
  FILEBASE=$(echo $PNG |awk -F / '{s=$(NF); n=split(s, sa, "."); delete sa[n];  for(sk in sa) {printf("%s.",sa[sk])}}')
  RGB="$SUBDIR/${FILEBASE}rgb"
  if [ ! -f $RGB ]
      then
      convert $PNG sgi:$RGB
  fi
done


= *.stg =
= *.stg =
1

edit

Navigation menu