6,566
edits
m (→convert: Syntax highlight.) |
|||
Line 35: | Line 35: | ||
When using [http://www.imagemagick.org/ ImageMagick's]/[http://www.graphicsmagick.org/ GraphicsMagick's] convert, like with [[GIMP]], it's necessary to either call the target file <tt>*.sgi</tt> or to specify the file type explicitly via <tt>sgi:</tt> prefix: | When using [http://www.imagemagick.org/ ImageMagick's]/[http://www.graphicsmagick.org/ GraphicsMagick's] convert, like with [[GIMP]], it's necessary to either call the target file <tt>*.sgi</tt> or to specify the file type explicitly via <tt>sgi:</tt> prefix: | ||
<syntaxhighlight lang="sh"> | |||
$ convert foo.png foo.sgi # RIGHT | $ convert foo.png foo.sgi # RIGHT | ||
$ convert foo.png sgi:foo.rgb # RIGHT | $ convert foo.png sgi:foo.rgb # RIGHT | ||
$ convert foo.png foo.rgb # WRONG! This doesn't create an SGI image! | $ convert foo.png foo.rgb # WRONG! This doesn't create an SGI image! | ||
</syntaxhighlight> | |||
This creates SGI images with RLE compression by default. | This creates SGI images with RLE compression by default. | ||
Line 43: | Line 45: | ||
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: | 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: | ||
<syntaxhighlight lang="sh"> | |||
#!/bin/sh | #!/bin/sh | ||
for PNG in $(find -name '*.png') | for PNG in $(find -name '*.png') | ||
Line 54: | Line 57: | ||
fi | fi | ||
done | done | ||
</syntaxhighlight> | |||
== *.stg files == | == *.stg files == |