In short, Compress allows you to create Zip files from Asset queries. This means you can do some really cool things that would normally be very manual for your content editors. For example, you could quickly create bundles from a bunch of assets for a "resources" style page - or, you could have a link to download all of the brand assets for a company and all your content editor has to do is upload something to a volume.

Because Zipping up files can be hard work, Compress tries to be clever by doing its best to offload that work to a queue job in the control panel.

Features

  • Generate "lazy links": will dispatch a queue job to generate archives, if a user clicks a link before the job is completed or started, the asset will be fetched on-demand and the queue job cancelled.
  • Compressed archives are stored as Assets themselves, so you may query them just like other assets.
  • Events for developers! You could easily automatically inject files into every compressed file if you wanted to (a license, maybe?)
  • Retrieve an asset query for the contents of an archive to show what files are contained in it
  • Automatically forces zip files to be regenerated when a dependent asset is deleted or updated in Craft.

Note: This plugin will not fully function on Craft Cloud due to the infrastructure being unable to stream binary responses. It may work to some degree; however, the volume you store the output files in must have public URLs.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
260
Version
4.0.1
License
MIT
Compatibility
Craft 3, Craft 4, Craft 5
Last release
June 17, 2022
Activity (30 days)
1
Closed Issues
1
Open Issues
1
Merged PRs
0
Open PRs