Last modified: 2014-05-24 13:44:32 UTC
There is the user pref "Image size limit: (for file description pages)" which makes sense, cos when you have a low resolution monitor, you don't want images to be e.g 1000px wide. Epic fail: It only applies to file pages! It should apply wiki-wide, including embedded images on normal content pages. It never bothered me but on the company wiki we use many screenshots. These are embedded as large as possible to be readable on the page itself w/o opening their file page; usually 600-1000px. But that's bad accessibility for people who use low resolution monitors (e.g. disabled people). MediaWiki is not barrier-free that way. Solution: Add a new pref "Maximum size of embedded images or thumbnails". This should override * embedded images in full width with [[File:Example.jpg]] * embedded images with a width [[File:Example.jpg|800px]] * galleries <gallery widths="800px"> Using a maximum width only would work as well.
I think the best place to deal with this is client-side (CSS/JS): 'max-width' etc.
The image size limits applies on pages if you use [[file:foo.png|thumb]] I agree with doing this client side if we do it. Otoh if the use case is not wanting to download big images, that wouldn't work. I would be opposed to adding another pref which the parser cache would have to vary on (the doing it server side)
I'm honestly leaning towards not doing this. Are there any (non-theoretical) disabled users who experiance problems due to the lack of this feature?
I don't care much anymore but * applying the pref only on file pages makes no sense * a solution as gadget is possible (css with max-width) but avoidable