Closed Bug 824331 Opened 12 years ago Closed 4 years ago

Optimize uploaded image attachments in an offline queue

Categories

(developer.mozilla.org Graveyard :: File attachments, defect, P3)

defect

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)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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 → ---
This is being kept open for attachments?
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
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!
Component: Performance → File attachments
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/
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 ago4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.