Last modified: 2014-08-03 18:36:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62316, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60316 - Allow image converter to reduce quality or color depth
Allow image converter to reduce quality or color depth
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.23.0
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-22 01:22 UTC by Yuri Astrakhan
Modified: 2014-08-03 18:36 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yuri Astrakhan 2014-01-22 01:22:11 UTC
Per discussion with Tim, in order to optimize image download size, especially for Zero, we need to be able to scale down not just the size, but also the quality (jpg) or the number of colors (png/gif). Please add the ability to reduce image download size by reducing quality.
Comment 1 Tim Starling 2014-01-22 23:23:22 UTC
I think the idea is to postprocess the article HTML in MobileFrontend to replace the img src attributes with ones that include a quality class parameter. Obviously we want to keep the number of quality classes small for optimal cache hit ratio -- I suggested two classes, Yuri suggested three. I showed Yuri a few images scaled with various quality parameters. It seems that for JPEG, ImageMagick -quality 30 is roughly what he is thinking, for a low-quality class.

I'm not sure how devices would be assigned to quality classes, or whether the carrier would influence quality class choice. I suppose feature phones known to lack support for 3G etc. would be given low quality images.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links