It is currently Mon Sep 21, 2026 4:18 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: ~
PostPosted: Sat Oct 19, 2013 3:58 am  (#1) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
~

_________________
~


Last edited by Zeo on Tue Nov 30, 2021 10:49 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Is it Safe Working with .xcf.bz2,.xcf.gz Extension?
PostPosted: Sat Oct 19, 2013 5:09 am  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Either one of .bz2 or .gz work fine with GIMP's XCF files. You can even run the 'bzip2' or 'gzip' programs on the files outside of GIMP and GIMP will be able to open them.

The tradeoff between gzip and bzip2 is the amount of time spent compressing/decompressing versus the amount of compression achieved. Bzip2 provides better compression but is significantly slower.

Using an 150Mb XCF file as an example, bzip2 compression took 40 seconds on my machine while gzip took 13 seconds. And for decompressing bzip2 took 13 seconds whil gzip took less than 3 seconds. The gzipped file was 40% smaller than the XCF while the bzipped version was 60% smaller.

My personal preference is to not worry about compression unless the file size is rather large (e.g., greater than 20Mb), and to use gzip when I do wish to compress.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: ~
PostPosted: Sat Oct 19, 2013 6:47 am  (#3) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
~

_________________
~


Last edited by Zeo on Tue Nov 30, 2021 10:51 pm, edited 1 time in total.

Top
 Post subject: Re: Is it Safe Working with .xcf.bz2,.xcf.gz Extension?
PostPosted: Sat Oct 19, 2013 7:47 am  (#4) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Zeo wrote:
But is working with .xcf.gz or .xcf.bz2 have possibility that the archive corrupt or something like that? :oops:

Not really. At least not more so than that possibility exists for the uncompressed file.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Is it Safe Working with .xcf.bz2,.xcf.gz Extension?
PostPosted: Sat Oct 19, 2013 8:46 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Apr 27, 2010
Posts: 1510
Location: Sweden
@Zeo

gzip and bzip2 are standard compression libraries used all over, there is nothing GIMP-specific about them and they are unlikely to fail or become invalid, certainly not anymore than gimp's xcf files themselves (as Saulgood points out).

Compression is common. Heck, many image formats, like .ORA (used by MyPaint and also available in GIMP) are basically just zipped archives of PNG images, one per layer.

As for this extra xcf.gz/bz2 compression though, I occationally have large-res images racking up in the hundreds of MB and I've never used it. Disk space is cheap. ;)
.
Griatch

_________________


Top
 Post subject: Re: Is it Safe Working with .xcf.bz2,.xcf.gz Extension?
PostPosted: Sat Oct 26, 2013 11:57 pm  (#6) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
Griatch wrote:
Disk space is cheap. ;)

Right, I think I should keep my .xcf files as .xcf... :oops:

I am asking this at first place because it is uncommon for image manipulation program to have file compression feature that compress its own native format... :hehe

_________________
~


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group