Pages: [1]
  Print  
Author Topic: GIMP support for compressed XCF  (Read 8081 times)
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« 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.alien but make sure you have the file-compressor plugin (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.
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
GrosBedo
Member


Cakes 20
Posts: 710


« Reply #1 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).
Logged
grey matter
Member


Cakes 8
Posts: 381

>9k


« Reply #2 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?
Logged

This space is for rent.
GrosBedo
Member


Cakes 20
Posts: 710


« Reply #3 on: June 04, 2012, 05:17:32 am »

Yes this should do the trick, thank's Grey Matter Smiley
Logged
Pages: [1]
  Print  
 
Jump to: