Closed
Bug 824331
Opened 12 years ago
Closed 5 years ago
Optimize uploaded image attachments in an offline queue
Categories
(developer.mozilla.org Graveyard :: File attachments, defect, P3)
developer.mozilla.org Graveyard
File attachments
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: teoli, Unassigned)
References
Details
Images created by tools like Office, OpenOffice, LibreOffice are far from being optimized for size.
I checked images I added to the MDN and I was able to reach 40 - 67% reduction of size, without lowering the quality, using a tool like ImageOptim.
These tools work by using different compression methods, by removing file comments (like "Creating using Microsoft Office") and large color profiles (unnecessary in most cases).
We should do this on the server side each time we upload such an image. (It can be done in an asynchronous way, btw)
On a primed cache (except for the page content), it may be a significant reduction of loading times as content images represent most of the data to be transferred (w/ the HTML file itself)
Comment 1•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/34e30c4be56b9869cafb30c5a600031ffe7a9ab2
fix bug 824331 - Crush images
https://github.com/mozilla/kuma/commit/e5ac8f902d1dc5491f3b7f19190f7e236b57ecf1
Merge pull request #783 from darkwing/lossless-images
fix bug 824331 - Crush images
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•12 years ago
|
||
I'm reopening. Though useful, the commit only crush existing styling images. It doesn't handle the bazillions images added via the wiki interface in the past and the future.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 3•12 years ago
|
||
This is being kept open for attachments?
Comment 4•12 years ago
|
||
Renaming the bug. Doing this as a one-shot on core site images is one thing, but setting up an image processing chain on attachment uploads is another enormous beast entirely. We'd have to reliably detect images, and then set up a Celery queue to chew through uploads with some sort of optimizer.
Summary: Optimize losslessly png, jpeg, gif images → Optimize uploaded image attachments in an offline queue
Comment 5•11 years ago
|
||
maybe https://github.com/JamieMason/ImageOptim-CLI would be a good optimizer?
Compressing images, especially PNGs, can dramatically improve PageSpeed scores. Also, here's another report that shows the benefits of faster page load times: http://www.portent.com/blog/internet-marketing/research-site-speed-hurting-everyones-revenue.htm
Thanks for keeping this on your radar!
Updated•9 years ago
|
Component: Performance → File attachments
Comment 8•8 years ago
|
||
Compressing the images Jpegs & PNG's is the most important aspect of ON Page SEO you need to compress images and also follow the steps here to have a great on page optimized page , also use Moz Bar to verify your SEO On Page Score , Follow Steps For On Page Optimization and Pagespeed Google Improvement here https://sitesmatrix.com/blog/category/seo-marketing/web-inpage-seo-tips/
Comment 9•5 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 5 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•