Allow resizing of an image by its height or by its width

Feature Upgrade · Images & image management · Created by MercuryViper
accepted
image image-resizing

What functionality is missing? What is unsatisfying with the current situation?

The ability to resize images by their width in BBCode is useful, but is only half of what is needed. Setting an image height override instead of an image width override in the img BBCode would be the preferred solution.  

How does this feature request address the current situation?

  I want to be able to resize images in my articles either by width or by height. In my case, I have a series of articles in my world that describe military ranks, each showing the rank's insignia in the sidebar. All of these images are either square or rectangular with the height being the major axis of the image. See
,
, and
as examples.   I would like to have all these images share a consistent height value to make these rank insignias share similar scale across the articles, but instead of being able to simply set a single height override through their BBCode reference, I will currently have to adjust each image to fit as I'd prefer.   Being able to set both width and height overrides at he same time seems redundant, and I'm assuming that the implementation of the override options in BBCode are pattern matching based given that they don't seem to be required nor are position-specific.   I could see the existing implementation of an integer number on its own still being interpreted as a width to maintain backwards compatibility so not affecting any authors' existing uses, but additional patterns of w=<integer> or width=<integer> and h=<integer> or height=<integer> providing the different options for constraining by width or height respectively.  

What are other uses for this feature request?

  I think this is a pretty specific feature upgrade, not sure if there is another use for it.

Follow up


Not sure how I managed to link to the same image twice. The third one should have been this:

The Team's Response

Thanks for the suggestion! We agree that sometimes height is more important than width, and calculating the height based on the current width-based size adjustment isn't easy. We've added this to our list as a low-priority improvement. Note that Grandmasters and above, with access to custom CSS containers, can already adjust image height if you're willing to dabble in CSS.
Current score

20/300 Votes · +5001 points

Votes Cast

  • +100

    by raptorbricks
    on 2025-10-14 16:41
  • +300

    by chairlegcharlie
    on 2025-10-14 13:37
  • +300

    by tofistig
    on 2025-10-09 10:35
    This sounds like it'd be great to have. Sometimes, you want images with the same width. Sometimes, you want them to be the same height. It really depends on their placement in an article, and having the ability to pick between one or the other would be really great.
  • +300

    by FischerZuSee
    on 2025-10-03 15:29
  • +300

    by A Filthy Dryad
    on 2025-10-03 03:44
  • +1

    by CharlesTesta
    on 2025-10-02 23:06
  • +100

    by Feline_Jedi
    on 2025-10-01 19:52
  • +300

    by SirBoBeth
    on 2025-09-27 19:25
  • +300

    by Kyberian
    on 2025-09-20 13:35
  • +100

    by CyborgJiro
    on 2025-09-19 10:46
  • +300

    by johaken
    on 2025-09-18 20:37
  • +100

    by A Revolutionary Mlem
    on 2025-09-16 10:47
  • +300

    by ss2020
    on 2025-09-16 05:06
  • +300

    by AuraGuard
    on 2025-09-15 20:26
  • +300

    by Mochimanoban
    on 2025-09-14 08:05
  • +100

    by yatenari
    on 2025-09-13 12:20
  • +300

    by Ebsfive
    on 2025-09-12 18:24
  • +300

    by Scalenex
    on 2025-09-12 15:07
  • +300

    by Elias_Zephyr
    on 2025-09-09 03:24
  • +300

    by Waschibubu
    on 2025-09-08 12:58
  • +300

    by MercuryViper
    on 2025-09-06 23:26