Page MenuHomePhabricator

Add a more intuitive word for resizing images in addition to "upright"
Open, Needs TriagePublicFeature

Description

Feature summary: When inserting files/images, add "scale" (or a similarly intuitive parameter name) as an alt to "upright". This is purely for editing convenience; no change in wiki behavior.

I ran this by the village pump on WP-en and got a positive response - https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Village_pump&oldid=1134065541#Should_we_have_a_more_intuitive_word_for_resizing_images_than_%22upright%22?

Benefits: The parameter name "upright" was originally a way to narrow an image in portrait orientation, and it's an intuitive word for that. However, it's since been expanded for all resizing relative to the readers default settings. The phrasing "upright=1.5" for a wide image is counter-intuitive, and in fact I've been reverted (back to deprecated absolute pixels) by an editor who thought that "upright" could only be used for portrait orientation. It also took me a long time to start using it because "upright" didn't make sense to me for its extended use. If I'd been using it all along, there would be tens of thousands more images on WP-en sized this way rather than with pixels.

I believe that if newbies could use "scale" (or similar short intuitive word of your choice), we might see a greater shift from deprecated fixed sizing. I'm not requesting that anything be changed with "upright" itself, only that we add a second word that would trigger the same behaviour: i.e. that "scale=1.5" and "upright=1.5" would have the same effect of widening an image by 50%.

PS IMO only "upright" should be usable on its own to scale an image to 75%. It would be unintuitive for "scale" to have that effect. That is, IMO "scale" should require a numerical value and thus not be a perfect synonym for "upright". Then in the user guides we could change the instructions to "scale" for a custom proportion, with "upright" as a shortcut for portrait orientation, and a technical footnote that "upright" can also be used for the former but is deprecated because users may find it confusing.

Posted for further comment on WP-en VPR.

Event Timeline

Kwamikagami renamed this task from Should we have a more intuitive word for resizing images than "upright"? to Should we have a more intuitive word for resizing images in addition to "upright"?.Jan 16 2023, 9:39 PM
Kwamikagami renamed this task from Should we have a more intuitive word for resizing images in addition to "upright"? to Could we add a more intuitive word for resizing images in addition to "upright"?.
Kwamikagami updated the task description. (Show Details)
Aklapper renamed this task from Could we add a more intuitive word for resizing images in addition to "upright"? to Add a more intuitive word for resizing images in addition to "upright".Jan 17 2023, 8:13 AM
Aklapper added a project: MediaWiki-Parser.

"scale" as an alias to "upright" sounds good to me. Will wait for a few days for any other suggestions before submitting a patch.

Change 885355 had a related patch set uploaded (by ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ; author: ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ):

[mediawiki/core@master] Add alias "scale" to img_upright

https://gerrit.wikimedia.org/r/885355

The VPR discussion was archived - https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(proposals)/Archive_198#Should_we_have_a_more_intuitive_word_for_resizing_images_than_%22upright%22?

Non-English language wikis usually allow two names for keywords like this, one is the default in English which is found in all wikis and other is an alias in the local language. The patch I have submitted uses similar logic by allowing to use "scale" along with upright in English. There is no other change in behavior of img_upright.

There is a lot of history around proposals to modify the behavior of upright, one of the suggestions was to introduce a *new* scale option, see what @cscott wrote in T351#1649303 so I'm not sure if adding it as an alias for upright is a good idea.

There is a lot of history around proposals to modify the behavior of upright, one of the suggestions was to introduce a *new* scale option, see what @cscott wrote in T351#1649303 so I'm not sure if adding it as an alias for upright is a good idea.

The VE UX for T64671 exposes the upright functionality as a "scale" slider. But upright only allows "scale" sizing of thumbnails. There is no way to "scale" the default image size. If we added a scale option, we could fix this and achieve a more consistent UI. (But do we want to? Scaling the uploaded image size makes page layout brittle against changes to the uploaded image size.)

This proposal has been stalled for many years and there is no indication of it being worked on.

I think having the new scale option would be better.