View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010603 | mantisbt | attachments | public | 2009-06-18 02:52 | 2023-09-05 03:56 |
Reporter | cas | Assigned To | |||
Priority | normal | Severity | tweak | Reproducibility | N/A |
Status | acknowledged | Resolution | open | ||
Product Version | 1.2.0a3 | ||||
Summary | 0010603: Automatic compression of uploads for download | ||||
Description | Quite often we have attachments that are pretty big, no problem on the home site but on more remote sites pretty annoying. | ||||
Steps To Reproduce | Compression routine, build upon php_zip, would look something like: | ||||
Tags | patch | ||||
Updated synopsis. Your report completely differs from your summary. |
|
That's a good idea. We now need a patch for this with the appropriate configuration knobs / documentation updates. Here are my thoughts:
At one point we were also considering auto-conversion of formats like bmp to an impage format with better compression. It would be interesting comparing the zip of a zipped bmp with the size of a jpg, gif, etc. |
|
Personally I would vote for one compression mechanism, no flag in the DB, set a minumum size , an on/off option and excludes. |
|
I believe that a flag is required for the following reasons:
I agree with 1 compression mechanism (as I mentioned in my earlier comment, this may be an overkill). |
|
I don't really see a need for this when we can just use gzip compression for server <-> client communication. The limiting factor is almost never going to be the amount of disk space you have available to serve up files - it'll be CPU usage and memory consumption... and zip compression certainly doesn't help limiting those two factors. Unless of course you're trying to save space in the database... in which case, isn't there an on-the-fly approach we can use in PHP to do this (as opposed to writing zip files to the disk and reading them back)? Still, I would disagree with compressing files because of CPU usage concerns and the availability of better traditional solutions such as mod_gzip, etc. |
|
For me it is not about diskspace, it is about the time it takes to view a bmp-file on a remote location. They sometimes are over 2mb whereas compressed they might be just 50k. |
|
I would vote for a one off additional process of zip/unzip for all existing bug attachments too. When a project uses a lot of text files (xml) like Scribus, we have a lot of them sitting around that could be made a lot smaller for all historical bugs, as well as turning on the compression for new bugs. |
|
Another vote for this feature. |
|
Created a pr for this feature: 0010603: Automatic compression of uploads for download #1901 |
|
The pr will not make it into a future release but this functionality now is available as plugin. |
|