'Unable to open [object Object]'

When trying to upload multiple pictures (jpegs) into one item, only the first image will be accessible. All the images will be listed under the item (and even display as an icon) but when I click through on any of them, bar the first, I receive this error: ‘Unable to open [open Object]: Error loading image at…’

Leo v0.1.0, Chrome v. 133, macOS Sonoma 14.7.1


2 Likes

I get this same problem when I upload my pictures as PNGs but not when I upload them as JPGs

1 Like

Hi Ben, thanks very much for the bug report! This sounds like one that we can hopefully fix fast, but first I need to be able to reproduce it on my end first. It looks like you’ve deleted the document in question (correct me if I’m wrong) – would you mind reproducing exactly what you did to get the issue and letting me know when you’ve done so? Then I can see what going on in the backend. Thanks in advance!

1 Like

Thanks, Jack! Yes, I did delete the document but I have now re-uploaded it (with the same problem).

Thanks Ben! I’ve now investigated this and have a diagnosis: the files that are failing to display are in an unsupported format (HEIF, which is a common iPhone image format), even though their extension is .jpeg (it should really be .heif).

We already have support for HEIF images on our roadmap, I’ll make sure we get to it soon.

In the meantime, a workaround would be to convert these to a format that we do support (JPEG or PNG for now) if possible – does that work for you? I notice that the first image in your list actually is a real JPEG, so maybe a conversion process has gone wrong somewhere and only the first image got converted?

Ah yes, that’s it! I’ve re-run my HEIF-JPEG conversion and this batch now uploads to Leo! Thanks for trouble-shooting this for me

1 Like

Fantastic! Glad it’s working :slightly_smiling_face: