Jump to content

Forum doesn't display a .HEIC image as a photo, shows it as an attachment instead

Go to solution Solved by mariushm,

HEIC is an image format that uses HEIF encoder, which in turn in derived from HEVC or h.265

 

To see the image in the browser, the browser would need to have an actual HEIF / HEVC decoder built in, but they'd have to pay royalties/licenses for it to the people that made the HEVC/h.265 standard

 

See https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format

 

Browser, version and OS: Firefox 101.0.1, Windows 10 ver. 21H2

 

Steps to reproduce/what were you doing before it happened?

I uploaded a .HEIC file to the status update

 

What happened?

It showed the file as an attachment

 

What did you expect to happen?

It is supposed to be an image displayed

 

Link to a page where it happened, if applicable: 

 

Screenshots of the issue, if applicable: 

 

image.thumb.png.4fcf9c96d3e944b8c392cfad90c19a18.png

IMG_2464.thumb.PNG.d27c25b0b4247776b96a715c7941b150.PNG

 

Any other relevant details:

I was able to reproduce it on Safari on the iPadOS 15.5.

 

If it's a cloudflare error, what was the ray ID from the bottom of the error page?

There is more that meets the eye
I see the soul that is inside

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

HEIC is an image format that uses HEIF encoder, which in turn in derived from HEVC or h.265

 

To see the image in the browser, the browser would need to have an actual HEIF / HEVC decoder built in, but they'd have to pay royalties/licenses for it to the people that made the HEVC/h.265 standard

 

See https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format

 

Link to comment
Share on other sites

Link to post
Share on other sites

Feature, not a bug. Its Apple-only format pretty much and forum supports the main ones (apart from SVG) only.

^^^^ That's my post ^^^^
<-- This is me --- That's your scrollbar -->
vvvv Who's there? vvvv

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Mel0nMan said:

TIL HEIC is a format people actually chose to use. As is said, requires a special codec. 

It's less about people choosing to use them and more that iOS devices automatically use HEIC by default for pictures taken with their cameras and people not bothering to change it. You have to manually change it to JPEG by choosing "Most Compatible" in the format settings. 

 

The iPhone Settings app

And now a word from our sponsor: 💩

-.-. --- --- .-.. --..-- / -.-- --- ..- / -.- -. --- .-- / -- --- .-. ... . / -.-. --- -.. .

ᑐᑌᑐᑢ

Spoiler

    ▄██████                                                      ▄██▀

  ▄█▀   ███                                                      ██

▄██     ███                                                      ██

███   ▄████  ▄█▀  ▀██▄    ▄████▄     ▄████▄     ▄████▄     ▄████▄██   ▄████▄

███████████ ███     ███ ▄██▀ ▀███▄ ▄██▀ ▀███▄ ▄██▀ ▀███▄ ▄██▀ ▀████ ▄██▀ ▀███▄

████▀   ███ ▀██▄   ▄██▀ ███    ███ ███        ███    ███ ███    ███ ███    ███

 ██▄    ███ ▄ ▀██▄██▀    ███▄ ▄██   ███▄ ▄██   ███▄ ▄███  ███▄ ▄███▄ ███▄ ▄██

  ▀█▄    ▀█ ██▄ ▀█▀     ▄ ▀████▀     ▀████▀     ▀████▀▀██▄ ▀████▀▀██▄ ▀████▀

       ▄█ ▄▄      ▄█▄  █▀            █▄                   ▄██  ▄▀

       ▀  ██      ███                ██                    ▄█

          ██      ███   ▄   ▄████▄   ██▄████▄     ▄████▄   ██   ▄

          ██      ███ ▄██ ▄██▀ ▀███▄ ███▀ ▀███▄ ▄██▀ ▀███▄ ██ ▄██

          ██     ███▀  ▄█ ███    ███ ███    ███ ███    ███ ██  ▄█

        █▄██  ▄▄██▀    ██  ███▄ ▄███▄ ███▄ ▄██   ███▄ ▄██  ██  ██

        ▀███████▀    ▄████▄ ▀████▀▀██▄ ▀████▀     ▀████▀ ▄█████████▄

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Avocado Diaboli said:

It's less about people choosing to use them and more that iOS devices automatically use HEIC by default for pictures taken with their cameras and people not bothering to change it.

At the beginning of the pandemic, when everything was going remote, I taught a class where I suddenly had to grade a bunch of work that was turned in by students snapping a picture of paper handouts since the class had to transition so abruptly and we needed time to digitize the course materials. Long story short, the number of times I had to convert HEIC files to a standard image file format was painful since I couldn't be bothered to download the codec.

 

Probably my own fault though.

It's entirely possible that I misinterpreted/misread your topic and/or question. This happens more often than I care to admit. Apologies in advance.

 

珠江 (Pearl River): CPU: Intel i7-12700K (8p4e/20t); Motherboard: ASUS TUF Gaming Plus Z690 WiFi; RAM: G.Skill TridentZ RGB 32GB (2x16GB) DDR4 @3200MHz CL16; Cooling Solution: NZXT Kraken Z53 240mm AIO, w/ 2x Lian Li ST120 RGB Fans; GPU: EVGA Nvidia GeForce RTX 3080 10GB FTW3 Ultra; Storage: Samsung 980 Pro, 1TB; Samsung 970 EVO, 1TB; Crucial MX500, 2TB; PSU: Corsair RM850x; Case: Lian Li Lancool II Mesh RGB, Black; Display(s): Primary: ASUS ROG Swift PG279QM (1440p 27" 240 Hz); Secondary: Acer Predator XB1 XB241H bmipr (1080p 24" 144 Hz, 165 Hz OC); Case Fans: 1x Lian Li ST120 RGB Fan, 3x stock RGB fans; Capture Card: Elgato HD60 Pro

 

翻生 (Resurrection): CPU: 2x Intel Xeon E5-2620 v2; Motherboard: ASUS Z9PR-D12 (C602 chipset) SSI-EEB; RAM: Crucial 32GB (8x4GB) DDR3 ECC RAM; Cooling Solution: 2x Cooler Master Hyper 212 EVO; GPU: ASRock Intel ARC A380 Challenger ITX; StorageCrucial MX500, 500GB; PSU: Super Flower Leadex III 750W; Case: Phanteks Enthoo Pro; Expansion Card: TP-Link Archer T4E AC1200 PCIe Wi-Fi Adapter Display(s): Dell P2214HB (1080p 22" 60 Hz)

 

壯麗 (Glorious): Mainboard: Framework Mainboard w/ Intel Core i5-1135G7; RAM: G.Skill Ripjaws 32GB (2x16GB) DDR4 SODIMM @3200MHz CL22; eGPU: Razer Core X eGPU Enclosure w/ (between GPUs at the moment); Storage: Samsung 970 EVO Plus, 1TB; Display(s): Internal Display: Framework Display; External Display: Acer (unknown model) (1080p, 21" 75 Hz)

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, Mel0nMan said:

TIL HEIC is a format people actually chose to use. As is said, requires a special codec. 

The size reduction with similar or better image quality is quite nice, especially if I'm delivering full-res images to people over a very limited cloud drive size. JPEGs actually consume a lot of space when you're trying to preserve image quality. If Lightroom outputs it, I'd probably use HEIC alot more for space savings.

 

Though I'd really like to see AVIF start to take root and replace JPEG.

My eyes see the past…

My camera lens sees the present…

Link to comment
Share on other sites

Link to post
Share on other sites

6 hours ago, Caroline said:

Why do Apple INSISTS so much in using non-standard things... ffs. I've encountered these files before in posts asking for help and could never open them because duh I don't have a Mac.

HEIC uses far more efficient compression for images, which is useful for devices with limited storage, and the limited free cloud storage Apple offers. I'd bet Microsoft probably gets charged per download as the format is quite propriety and patent laden (similar to H.265), and so doesn't include it by default. I like the space savings offered by HEIC, but a proper replacement for JPEG should be open source, such as AVIF.

 

For Windows, you can download the extension for Photos to allow the application to open HEIC files. You can download extensions to open various RAW formats for DSLR/Mirrorless cameras as well.

My eyes see the past…

My camera lens sees the present…

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, Zodiark1593 said:

Though I'd really like to see AVIF start to take root and replace JPEG.

As would I, but AVIF support in browsers is still a bit hit-or-miss. Both Chrome and Firefox supposedly fully support it - although I have heard of some bugs surrounding it in both - but Safari doesn't support it at all, despite it being supported by WebKit. This is apparently because Safari offloads its image decoding to the OS, rather than handling it itself like Chrome or Firefox, but MacOS/iOS etc. don't support AV1/AVIF yet. At first glance this isn't surprising given M1/M2 don't have hardware decoders for it, but then you realise that Apple is a member of AOMedia - the alliance that designed AV1...

CPU: i7 4790k, RAM: 16GB DDR3, GPU: GTX 1060 6GB

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, tim0901 said:

As would I, but AVIF support in browsers is still a bit hit-or-miss. Both Chrome and Firefox supposedly fully support it - although I have heard of some bugs surrounding it in both - but Safari doesn't support it at all, despite it being supported by WebKit. This is apparently because Safari offloads its image decoding to the OS, rather than handling it itself like Chrome or Firefox, but MacOS/iOS etc. don't support AV1/AVIF yet. At first glance this isn't surprising given M1/M2 don't have hardware decoders for it, but then you realise that Apple is a member of AOMedia - the alliance that designed AV1...

Lack of hardware decoders is hardly an excuse for Apple when they have those beefy CPUs that will make micemeat of them.

My eyes see the past…

My camera lens sees the present…

Link to comment
Share on other sites

Link to post
Share on other sites

HEIC is free for Apple because Apple can afford to pay the "one time" fee of a few million dollars to not pay royalties for every device sold with hevc / h265 playback and/or encoding. I think they're also part of the group with some patents but I'm not sure.

It's also free for them because the processor has built in hardware encoder and decoder, like regular video cards have.. so when you take a picture, they just start the hardware video encoder on the video card part of the processor and configure it to just one video frame and with parameters tuned/optimized for one image.

 

Firefox and others would have to pay to be able to decode HEVC in browser... even now Firefox can decode H.264 videos because Cisco made their H.264 decoder free (they paid a huge amount of money whatever premium tier unrestricted usage etc) because it was more profitable for them to have browsers support h264 decoding well.

 

AVIF would be open source and worthy of being a JPG replacement, but I have a feeling JPG XL will win... which is a shame. It's not a bad format, but again Microsoft got greedy and patented some compression algorithms used in JPG after the actual inventor of those algorithms expressed publicly that he wanted those to be free for all, public domain basically.

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 6/14/2022 at 2:02 PM, captain_to_fire said:

What did you expect to happen?

It is supposed to be an image displayed

There are actually two issues here.

1) The forum does not treat .heic files as image files. Probably because Invision Community isn't aware of .heic as a format.

2) No browser, not even Safari, supports .heic files. So even if the forum properly identified them as images, they still wouldn't display properly.

 

 

The solution would be to write a polyfill that implements heic decoding in javascript. The issue with that is that:

1) The libraries I have seen to do this are quite heavy. For example the one written by Nokia seems to be around 700KB. 700KB does not sound like a lot to people used to download 100GB games, but you have to remember that this entire page consist of 2,25MB of CSS and Javascript. Implementing support for heic would make the website ~30% larger, JS wise.

 

2) HEVC, which heic is based on, is a licensing nightmare. It's simply best for companies to stay away from it as much as possible so that they don't end up getting sued because they missed paying some fee for supporting it.

 

 

 

On 6/14/2022 at 6:58 PM, LogicalDrm said:

Feature, not a bug. Its Apple-only format pretty much and forum supports the main ones (apart from SVG) only.

It's not really an "Apple-only" format. It's just that Apple is essentially the only big player that has chosen to support it and enable it by default. Others can use it too, but because of the licensing mess that surrounds it barely anyone dares.

Several Android phones, including those from Samsung, has implemented it too. It's just that it's off by default.

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, LAwLz said:

It's not really an "Apple-only" format. It's just that Apple is essentially the only big player that has chosen to support it and enable it by default. Others can use it too, but because of the licensing mess that surrounds it barely anyone dares.

Several Android phones, including those from Samsung, has implemented it too. It's just that it's off by default.

I see you missed the "pretty much" part. But thanks for expanding "pretty much" to whole paragraph, I guess.

^^^^ That's my post ^^^^
<-- This is me --- That's your scrollbar -->
vvvv Who's there? vvvv

Link to comment
Share on other sites

Link to post
Share on other sites

25 minutes ago, LogicalDrm said:

I see you missed the "pretty much" part. But thanks for expanding "pretty much" to whole paragraph, I guess.

Sorry, I did miss the "pretty much" part. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×