Opened 12 years ago
Last modified 4 years ago
#11024 new enhancement
Losslessly compress images
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-dev-1.7.x |
Component: | general | Version: | |
Severity: | normal | Keywords: | performance |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi. Compressing the png images losslessly saves quite a few bytes.
Attachments (1)
Change History (16)
by , 12 years ago
Attachment: | trac-trunk.7z added |
---|
comment:1 by , 12 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I don't think we want the added complexity, trading for a few bytes saved.
comment:3 by , 12 years ago
http://gtmetrix.com/reports/trac.edgewall.org/5Jpxg7Yw
Also if the css and js files were minified and combined the gain would be noticeable. And this can be automated of course by using node.js's clean-css and uglify-js.
The gain from all this is for free. You shouldn't just say blindly you won't do it.
comment:4 by , 12 years ago
Replying to anonymous:
Where exactly did you see the complexity?
I may have misunderstood the suggestion. Would you mind explaining?
About CSS and JS minification, I think we already have an open ticket for this.
comment:5 by , 12 years ago
The image lossless compression is a one time thing; only if you modify the images you should do this again.
You can use various tools, I used http://pnggauntlet.com/, which uses optiPNG etc. Alternatively you can use http://kraken.io/.
As for CSS and JS, not only they should be minified but combined also; this will reduce the number of HTTP requests by a lot, -6 at least.
comment:6 by , 12 years ago
Milestone: | → unscheduled |
---|---|
Resolution: | wontfix |
Status: | closed → reopened |
And here I thought PNG was already compressed. The total size of our .png
images is 165'437 bytes (jQuery UI included), so we'll save at most… 160KB. But fair enough.
I would prefer having a small script in contrib
that runs the compressor on the images in trac/htdocs
, rather than using an online tool.
comment:7 by , 12 years ago
The thing is that kraken.io will offer the best results. Personally, I use http://kraken.io/ and then PNGGauntlet for the best results.
If you really need a script you could go with optiPNG only, not sure if PNGGauntlet supports command line plus it's Windows only, while optiPNG is cross platform.
The ideal solution would be to use kraken.io via node.js, since node.js will be needed for CSS and JS minification and merging and it's cross platform.
I could provide a script for CSS and JS, but I haven't used the kraken.io API so I'm not sure if I can make it work.
comment:10 by , 10 years ago
Milestone: | unscheduled → 1.0.3 |
---|
Attachment can be readily adopted, hence assigned milestone.
comment:11 by , 10 years ago
Milestone: | 1.0.3 → next-stable-1.0.x |
---|
milestone:1.0.3 is closed and a developer needs to accept the change in order to have it assigned to a milestone.
comment:13 by , 10 years ago
Status: | reopened → new |
---|
comment:14 by , 10 years ago
Milestone: | next-stable-1.0.x → next-major-releases |
---|
comment:15 by , 4 years ago
Milestone: | next-major-releases → next-dev-1.7.x |
---|
@Jun, do you think this is worth implementing to save a few kBs?
I think we can decide to either do this per comment:6 or close out the issue in the next dev cycle.
PNG images compressed losslessly