zip

user warning: Got error 28 from storage engine query: SELECT t.tid, t.* FROM term_data t INNER JOIN term_hierarchy h ON h.parent = t.tid WHERE h.tid = 101 ORDER BY weight, name in /home/24b6/public_html/modules/taxonomy/taxonomy.module on line 755.

Media Mover & Zip Compression

A request came up in Media Mover's issue queue last week looking for Zip compression for files. I've been saying for quite some time that Media Mover is not just about media, but about file handling in general. While it works well for media, any file might need the same kinds of interactions that Media Mover provides for media- the need to create PDFs from doc files, or transform Excel documents into CSV documents are common enough that having programmatic ways of doing this is desirable.

So when digital.wannabe was asking about Zip, I mocked up the code quickly for how it might work. Ironically, this very morning I had need of it, so I quickly built a Media Mover module to do exactly this.

Now you can compress a file in any of Media Mover's stages after a file has been harvested. This is useful if you need to cut down on bandwidth in transferring a file or saving disk space.

Obviously, the extension of this is to provide un-zipping capacity in to the Media Mover process. Then one could build a configuration which harvests zipped files from an FTP server and attaches the files to a Drupal node. Or any other permutation. It could also serve as a mechanism to keep files associated in Media Mover.

Syndicate content