Page 1 of 1

pet files in general [Solved]

Posted: Thu 11 Jun 2020, 18:49
by FeodorF
Hi all,

I have a question about pet files. I have created a pet file for my Samsung printer. The biggest file inside the pet is around 2400 K. The total size of the pet itself is 1000 K. Yes, the pet file works! Is the difference in between just compression? If so I'm really surprised in a positive way.

Regards,
Feodor

Posted: Thu 11 Jun 2020, 20:23
by dancytron
How did you make it?

Some scripts that make .pet files strip out the documents, localization, etc in addition to compressing.

Posted: Thu 11 Jun 2020, 21:07
by FeodorF
Hi dancytron,

my pet file includes a ppd file(36K), one filter file(89K) and a huge single lib file(2.539K). In total 2664K compared to a 968K pet file.

The tool I used was `dir2pet` from Barry's EasyOS to be used for `amd64`.

Regards,
Feodor

Posted: Thu 11 Jun 2020, 21:25
by musher0
Hello FeodorF.

BK's pet-making utility can use either gzip or xz compression.
If you type "X" in the console dialog, the pet will be archived using xz compression.
If you simply type "Enter", the pet will be archived using gzip compression.

xz makes a more compact archive than gzip.
Please see this table for a comparison:
https://www.rootusers.com/gzip-vs-bzip2 ... comparison
(about 1/3 down the page)

However, the % (ratios) above are not absolute, because there are other, general,
considerations, such as:
-- any archive containing an already compressed file will be much less compressed
(because that compressed file cannot be compressed further);
-- any archive containing lots of text files (for example help files) will be a lot smaller.

Finally, please note that older versions of BK's pet utility only offered gzip compression.

IHTH.

pet files in general [Solved]

Posted: Thu 11 Jun 2020, 22:07
by FeodorF
Hi musher0!

Guess I'm using gzip compression as I just hit enter after the questions.

The lib file I'm compressing is surely not compressed ahead of time, that's for sure.

That must have slipped out of my mind when I asked the question about the pet file size afterwards.

Greetings,
Feodor

edit: Yes, it uses gzip for sure.

Posted: Fri 12 Jun 2020, 04:29
by musher0
Hi FeodorF.

Glad I could be of help!

BFN