Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

ZIP plugin ver 1.30


ZIP plugin ver 1.30

Postby Ainvar » Dec 30, 2002 @ 8:12pm

Trying to zip up alot of my e-books to save some space and was looking at trying to set the compression to maximum compression. Was not able to do and I was curious as to ask if these zips are pc compatible also.

Is there a future feature as to what compression I want to use or is there one compression fits all?
Note to self: Why don't you ever listen to me?

We the unwilling led by the unqualified for so long with so little we now attempt the impossible with nothing
User avatar
Ainvar
pm Member
 
Posts: 255
Joined: Feb 27, 2002 @ 12:13am
Location: Atlanta, Ga


Postby sponge » Dec 30, 2002 @ 8:19pm

The zips should work on PC too, unless Dan coded a new compression algorhytm, but I'd be surprised.
holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby James S » Dec 30, 2002 @ 8:47pm

No, their general zip files. If they weren't zip files then they'd be named dez files or something, because ZIP is a set of patented compression algorithms. If you want to save some more space try compressing them using gz instead of zip. gz has a much better compression ratio, but aren't as versatile as zips, although that won't matter since you're just zipping up regular old text files, which gz is GREAT for.
<img src="http://home.comcast.net/~sonne/james/tag.gif">
James S
pm Insider
 
Posts: 17064
Joined: Jan 12, 2002 @ 2:33pm
Location: Lexington, KY


Postby sponge » Dec 30, 2002 @ 9:07pm

If they're plain text files, you won't see a substantial difference either way.
holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby Dan East » Dec 30, 2002 @ 9:52pm

The Zip files created by DEXplor are true Zip files and are compatible with other software (winzip, pkzip, etc).

I defaulted to maximum compression and did not provide an option to use a lesser compression. I will probably add that capability in the future because it will be pretty easy to implement, although most people will still use max compression.

Moose, Zip uses zlib compression. Think of a zip file as a conglomeration of gzipped files with additional file attribute info (like the path, modified date, time, etc). So you will see the exact same compression between zip and gzip when using the same compression level. Of course there is a small amount of additional overhead in a zip because of the extra info per-file it stores, but it is a small amount, and is not dependant on the size of the original files.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Ainvar » Dec 30, 2002 @ 10:33pm

Thanks for the info, I was thinking that but since my cradle is at home and no way to test some of it, I thought it would be easy to ask here.

Thanks for the info on how you did both the gzip and zip stuff on DEXplor. The ebooks compressed shaved off about 200k per file so I save about 12 megs in total when I was done making individual gzip files. when I did do the new zip file I only saved maybe have that space (prolly more but I was guesstimating). Plus this makes it to where I can store more books on this 128meg sd card until I can get a 256 or the 512 comes down enough to justify the purchase.
Note to self: Why don't you ever listen to me?

We the unwilling led by the unqualified for so long with so little we now attempt the impossible with nothing
User avatar
Ainvar
pm Member
 
Posts: 255
Joined: Feb 27, 2002 @ 12:13am
Location: Atlanta, Ga


Postby James S » Dec 30, 2002 @ 11:47pm

Well, I learned something today. I knew that ZIP had all that special stuff, but I thought they were entirely different formats, of sorts.
<img src="http://home.comcast.net/~sonne/james/tag.gif">
James S
pm Insider
 
Posts: 17064
Joined: Jan 12, 2002 @ 2:33pm
Location: Lexington, KY


Postby Dan East » Dec 31, 2002 @ 4:35am

I'll add one more thing. If you are storing files directly on your Pocket PC then the OS will compress the files using a fast, low quality algorithm. To give you a rough estimate with text files, the OS compressed them to around 50% of their original size, while zip / gzip compressed them to 25% of their original size. So compressing files that are going to be stored directly on the device does not save you as much space as it would appear going by the filesize alone, although it does help some.

Now in your case you gain all the file space you reported because the OS does not automatically compress files on a Storage Card.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to DEXplor


Sort


Forum Description

Discuss this new File Management app by Dan East.

Moderators:

Dan East, sponge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum