Feature Request: Support for HEIF images

Comments

39 comments

  • Technik

    @FuN_KeY from my stand of view this is not the reason. From my eyes of developer it is thing of some algorithm to reduce size of the picture or make it less nice and change the formate to JPEG.

    @Mxx this is ok, cause conversion from heif to JPEG ain't that hard

    But I think that there is so much in game licencing of this format, cause even all platforms are accepting this format, they have to pay fee in order to make something with it and I thing this is problem of the discord platform and I don't thing thay earn enough to have it on first place between tickets I thing thay have it somewhere in ticketing systems but don't put much weight on it sadly 😐

    0
  • Mxx

    Can't understand what you said. One giant run-on sentence.

    HEIF container file format itself is free. However, it uses HEVC compression codec. And that codec has licensing fee.

    AVIF container format is the same as HEIF, so it's also free. It uses AV1 codec for compression and it is royalty free.

    And again, the issue is that NO browser engine has native support for HEIF format.
    Discord is built on top of Electron, which is built on top of Chromium. So it will be a lot of overhead for Discord to create its own polyfill(https://en.wikipedia.org/wiki/Polyfill_(programming) ) to support HEIF.

    0
  • FuN_KeY

    Mxx: let's manage expectations here. Even if chromium does not natively support HEIF it should be converted on the fly. There are libraries in javascript capable of doing exactly that. While this is not perfect this would end up being 20x more user friendly.

    Technik: I was half trolling with that conspiracy theory :-)

    I was about to rant some more, but I have to admit that things are now much, much better on iOS. Previously images shared from the iOS photo app to Disord were converted to jpeg while photos added directly from Discord to the chat were not. This is now fixed, and pictures are consistently converted to jpeg, regardless of the way they were added to the conversation.

    If the same could be done on Windows you won't hear me complain about that matter!

    2
  • Grey Jafari

    @Technik Somehow, I don't think not having enough money is the problem. How is Discord making less money than Telegram when they sell your data to advertisers Facebook-style and TG doesn't? Telegram also doesn't have Nitro to make them the big bucks like Discord does. "Telegram Premium"/"Telegram Gold" memes have been a thing for a long while and yet they still don't have a premium option. Thank god, free animated stickers FTW. (Also plz don't ban me Discord mods I'm not saying Telegram is better)

    Anyhow that aside, I do see the point about licensing prices but from how I understand it, they don't actually have to pay that if they rely on the decoder built into the OS. Windows, Mac OS, Android, and iOS have a built-in API to use it and even a built-in API to convert them to JPEG before uploading.

    Discord even shows the image preview in the file browser when you tap on the image, likely using the built-in API, but then once it finishes uploading, that image thumbnail suddenly becomes a file upload. Talk about a broken and inconsistent UI experience!

    And yes it would be nice if we moved on to a newer format like AV1 but uh, tell Apple, Samsung, Google, Huawei, LG (okay not them anymore), Sony (both phones AND cameras), and even GoPro that. Cause their images ALL save as HEIC right now. It's up to platforms to support the standards that are commonplace on user's devices.

    2
  • Grey Jafari

    @FuN_KeY Damn, I wish they would implement that auto-convert thing in Android. Samsung used to do it if you used the gallery app to share instead of posting from the app directly, but Samsung actually removed that conversion feature in an update a few years ago. Not sure why. But hey at least it's been replaced by a "remove location tags" option.

    0
  • Timelord

    Samsung Gallery still auto converts, but only one photo can be selected and such.  It is crappy.  As for free auto-convert-to-jpeg-or-whatever libraries, there are plenty of free ones that can do it server side or client side.  There are libraries that can do it externally or as part of their existing framework.  There is literally zero reason except exceptional indifference to prevent them from doing this.  The whole idea it is a dead and unused format is dumb.  That we are having this conversation should be proof enough, but every other client supports it.  I use Telegram increasingly much with my friends simply because we got tired of dealing with the jank of trying to pass files back and forth with Discord.  I bought Nitro so I can transfer whatever dang size of photo I want.  It isn't a money issue.  It is simply more user-hostile interface design.

    1
  • Grey Jafari

    And come to think of it, Telegram has a web client too. So if they can support HEIC there (which I imagine they do since I know desktop and mobile do), then the fact that Discord has a web client and uses Electron is no excuse.

    1
  • funkyblue

    Needs to be supported.

    2
  • temporary support

    Given that I given the hoops I had to jump through just to log into this support site, discord seems to be focused on selling data and pushing nitro. I had to allow cross-site tracking just to view this thread.

    1

Please sign in to leave a comment.