pet files in general [Solved]

Booting, installing, newbie
Post Reply
Message
Author
User avatar
FeodorF
Posts: 293
Joined: Wed 07 Jul 2010, 09:44
Location: Heidelberg, Germany

pet files in general [Solved]

#1 Post 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
Last edited by FeodorF on Thu 11 Jun 2020, 22:10, edited 1 time in total.

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#2 Post by dancytron »

How did you make it?

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

User avatar
FeodorF
Posts: 293
Joined: Wed 07 Jul 2010, 09:44
Location: Heidelberg, Germany

#3 Post 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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post 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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
FeodorF
Posts: 293
Joined: Wed 07 Jul 2010, 09:44
Location: Heidelberg, Germany

pet files in general [Solved]

#5 Post 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.
Attachments
it-uses-gzip-compression.png
(17.45 KiB) Downloaded 40 times
Last edited by FeodorF on Fri 12 Jun 2020, 09:12, edited 2 times in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#6 Post by musher0 »

Hi FeodorF.

Glad I could be of help!

BFN
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply