OpenArena Message Boards

OpenArena Contributions => Graphics => Topic started by: Udi on May 28, 2012, 01:48:08 am



Title: GIMP support for compressed XCF
Post by: Udi on May 28, 2012, 01:48:08 am
I just realized something cool: GIMP supports (opens and saves to) compressed XCF files with the GZIP and BZIP2 compressions. I don't know since when, but GIMP 2.6 works and probably so does 2.8, but make sure you have the file-compressor plugin (http://gimpchat.com/viewtopic.php?f=9&t=4163) (I have yet to try the 2.8 release).

Here are some example compressions:
  • example1.xcf: 1,2 MB (1.167.554 byte)
  • example1.xcf.gz: 666,7 kB (666.746 byte)
  • example1.xcf.bz2: 351,2 kB (351.215 byte)

  • example2.xcf: 3,2 MB (3.244.705 byte)
  • example2.xcf.gz: 595,0 kB (594.972 byte)
  • example2.xcf.bz2: 541,7 kB (541.681 byte)

So I guess we can save a lot of storage and bandwidth if all the XCF files in the SVN would be compressed with either GZIP or BZIP2.


Title: Re: GIMP support for compressed XCF
Post by: GrosBedo on May 28, 2012, 07:16:18 am
Very nice!

If it's only a bzip2 compression, then I think someone can simply make a bash script to convert existing XCF files. This would be a lot more convenient that using GIMP (although I think that GIMP can also be used in batch).


Title: Re: GIMP support for compressed XCF
Post by: grey matter on May 28, 2012, 08:20:04 am
Code:
find -depth -name "*.xcf" -exec svn rm --keep-local {} \; -exec bzip2 -9 {} \; -exec svn add {}.bz2 \;
Something like this?


Title: Re: GIMP support for compressed XCF
Post by: GrosBedo on June 04, 2012, 05:17:32 am
Yes this should do the trick, thank's Grey Matter :)