• callyral [he/they]@pawb.social
    link
    fedilink
    English
    arrow-up
    38
    arrow-down
    1
    ·
    1 year ago

    it’d be nice if it automatically scales the image to lower resolution and put a warning “this image will be downscaled to fit within filesize limits”

  • Jiberish@kbin.social
    link
    fedilink
    arrow-up
    34
    ·
    1 year ago

    We’ll figure out this limit. Just keep reducing file size by half and increasing by a quarter. I have some vacation days to burn.

      • tun@lemm.ee
        link
        fedilink
        arrow-up
        42
        arrow-down
        3
        ·
        1 year ago

        Software dev here.

        Client app have little to no knowledge about server limit.

        Usually the limit is set at various places in the server. Even the server app itself does not know it’s file size limit most of the time.

        Anyway the screenshot is still worthy of the topics.

        • Echo Dot@feddit.uk
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          Still though if the limit is blocking a single image from being uploaded it’s going to be pretty small. I can WhatsApp a 4K image because it’ll do down sampling to 720p, it seems odd that the same tactic wouldn’t be implemented here.

          • tun@lemm.ee
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            1 year ago

            Resize without resampling is not resource intensive and appear not as good as resampling.

            Still server has to

            1. Accept file (needs bandwidth and storage space)
            2. Resize (needs storage, RAM and CPU)
            3. Clean up (needs CPU)

            I don’t know lemmy has this feature or not. Even if not, as Lemmy server get mature this feature might get implemented. Server might allow admin toggling this feature.

            Recent attack on Lemmy servers with CSAM made server admins to completely turn off the image upload. That could also be the case here.

          • tun@lemm.ee
            link
            fedilink
            arrow-up
            15
            arrow-down
            1
            ·
            1 year ago

            Not the avelon dev. Just a nobody software dev.

            Just sharing my exp.

  • fer0n@lemm.ee
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    I‘m guessing the API doesn’t return that info and it‘s different from instance to instance. Other clients also don’t show it. I noticed that it is also a question of dimensions, not just file size. But a terrible experience all around. I gave up and been using Imgur ever since.

    • poppy@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I can’t remember which instance, but I did see a post from the admin of an instance who said they had to limit basically anything bigger than the avatar because they didn’t want to be a host for questionable material. I imagine a lot of instances have similar “no image hosting” policy.

  • evgiz@lemm.ee
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 year ago

    Didn’t expect to see my own app in softwaregore 🥲

    If it’s any consolation the error is just straight from the API