• TwistyLex@discuss.tchncs.de
    link
    fedilink
    arrow-up
    8
    ·
    19 hours ago

    Literally just today solved a problem of delivering analytics plots over our internal chat system. The file size limit is 28Kb and I was just getting ready to say screw it, can’t be done.

    Lo and behold our chat system that doesn’t support svg does support webp. Even visually complicated charts come in just below the size limit with webp.

      • TwistyLex@discuss.tchncs.de
        link
        fedilink
        arrow-up
        4
        ·
        18 hours ago

        Honestly no idea. It’s funny though. The API allows us to either read it directly from our lakehouse with the 28Kb limit, or allows us to encode it in a json object. It actually recommends using the json method if we want to send larger files… but then complains it’s too large if it’s over 28Kb 🤷‍♂️

        I think it was probably originally only intended to allow attaching icons.

        • bamboo@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          3
          ·
          17 hours ago

          Feels like a bug where someone forgot the 1 in 128kb. What chat app is this?? In Slack, custom emojis can be up to 128kb in filesize

          • TwistyLex@discuss.tchncs.de
            link
            fedilink
            arrow-up
            2
            ·
            17 hours ago

            It’s MS Teams with their PowerAutomate flows from Fabric. The limitation might not exist in the direct rest API, which I could have used through Python; but it’s a hackathon, and my other team mates know PowerAutomate. Faster if we each coordinate using what we’re good with.