1. For prospective new members, a word of warning: don't use common names like Dennis, Simon, or Kenny if you decide to create an account. Spammers have used them all before you and gotten those names flagged in the anti-spam databases. Your account registration will be rejected because of it.
    Dismiss Notice
  2. Since it has happened MULTIPLE times now, I want to be very clear about this. You do not get to abandon an account and create a new one. You do not get to pass an account to someone else and create a new one. If you do so anyway, you will be banned for creating sockpuppets.
    Dismiss Notice
  3. If you wish to change your username, please ask via conversation to tehelgee instead of asking via my profile. I'd like to not clutter it up with such requests.
    Dismiss Notice
  4. Due to the actions of particularly persistent spammers and trolls, we will be banning disposable email addresses from today onward.
    Dismiss Notice

[bimg] is terrible and needs to be reworked. (Many large images here)

Discussion in 'Suggestions & Bugs' started by Fenris Faust, May 4, 2020.

  1. Fenris Faust

    Fenris Faust Headpat Slut

    Joined:
    Apr 2, 2020
    Messages:
    29
    Likes Received:
    1,056
    The bimg code has a lot of issues, which I will explain below.

    1. It is redundant for the "Click for original size" button to exist, since clicking the image does the exact same thing. It also has an annoying empty space below it.

    bimg=750 (Maximum)


    It doesn't even work well for small images as it follows the width of the picture, making it just as hard to click on it.

    bimg=50

    bimg=25

    bimg=10 (Minimum)

    2. The bimp image viewer doesn't show the full size of large images. If the image is too big, it will instead decrease the resolution and you have to open another window to see the full resolution.

    bimg=750 (1000 x 1500)

    It works fine for small images, but I would rather have it be like the img code, where clicking on an img expands the image directly.

    img (1000 x 1500)
    [​IMG]

    3. Replying to a post with bimp doesn't resize correctly at all, unlike img which does.
    4. When viewing a person's content through searching, an img will show the link as "img". The bimg however will neither compress the link nor show that it has a bimp attached to it, it will simply show the full link alone.

    5. This is not really an issue but the info that the range of the bimp (10 to 750) should be added to the BB Codes list since any number outside of that range will force the image into the default size of 180.

    Now I have no idea if my suggestion can be implemented, but I would like it if img were to be expanded upon. Images with img would be able to be resize, making it so that the img command becomes "[img=SIZE][/img]". It would use the same size range as bimp, except that there is no image viewer and it expands the image to it's full size directly. The original img code would still function as the same before any changes. This would allow anybody to still use the bimp image vieweer while having an img that can resize, though I wouldn't mind if you get rid of bimp entirely.

    I used aqua because I feel like crying after trying to get this code to work
     
    Last edited: May 21, 2020
    alethiophile and Renko like this.
  2. alethiophile

    alethiophile Shadowed Philosopher Administrator

    Joined:
    Apr 26, 2013
    Messages:
    4,991
    Likes Received:
    24,993
    I will take a look at this and see if it's easy to fix.

    We're currently pending an upgrade to XF 2.0, and fixes like this may have to wait until after that just to avoid wasted effort.
     
    january1may likes this.
  3. MissileTeatime

    MissileTeatime By the power of Vaporware!

    Joined:
    Apr 21, 2017
    Messages:
    850
    Likes Received:
    1,808
    I didn't even know this existed. (Which might be an argument for "this doesn't really matter", though.)

    The separate "view at original size" target would be nice for cases when I click on the image only to discover that the jerk who posted it made it into a link. Except that no-one uses this that I've ever seen.
     
    january1may likes this.
  4. MissileTeatime

    MissileTeatime By the power of Vaporware!

    Joined:
    Apr 21, 2017
    Messages:
    850
    Likes Received:
    1,808
    Other problem:

    I mostly browse on mobile, usually my phone sometimes my tablet. When someone posts an [img] that's too big for my viewport, it just gets resized down to something that fits and I can click it to expand. This is nice, because it lets me preview it and decide if it's worth expanding. With the current behavior of [bimg], if the image is too wide for my viewport for whatever reason, that's it I'm screwed. I can't even scroll sideways to view it, like I can an expanded [img]. My only option is to click to view it and let it shrink down to fit. There are several examples of this problem in the OP.

    It would be nice if [bimg] shrunk images down to fit my screen, like [img] does.

    (There's also the thing where the bimg viewer apparently gathers and shows all the images in a post, which could generate spoilers for some niche use-cases, but that's not as much of an obstacle.)
     
    january1may likes this.