Photos: HEIC support

Created on 27 Apr 2020  路  11Comments  路  Source: nextcloud/photos

Is your feature request related to a problem? Please describe.
I'm an iPhone user, and my phone shoots photos in HEIC format (rather than JPEGs). I chose to disable the "Maximum Compatibility" in the nextcloud app for iPhone, and prefer to upload HEIC files rather than in-phone converted JPEGs.
I'm fine with the Apple eco system, and all devices understand HEIC just fine.

Describe the solution you'd like
Show HEIC files as well as JPEG files in the photos app.

Describe alternatives you've considered
Enable "Maximum Compatibility" is not an option for me.

Additional context
Given the support for HEIC exists in the local imagemagick installation, nextcloud can handle HEIC files pretty well. The files app shows thumbnails and previews. However, photos ignores the files completely.

I've changed the MIMES array in lib/AppInfo/Application.php to include 'image/heic', and the thumbnails appear just fine. However, when clicking on the file, nothing happens, where I would expect the lightbox to appear and give a bigger view of the image.

4. to release enhancement

All 11 comments

Hi! :)
This is because we need this https://github.com/nextcloud/viewer/issues/4

Describe alternatives you've considered
Enable "Maximum Compatibility" is not an option for me.

What does that means?

What does that means?

It means, I do not want to upload the files to nextcloud as JPEGs but rather keep using HEIC as the file format I upload from the nextcloud iOS app to the nextcloud server. And I would like to have the photos app to deal gracefully with them, if the system supports it (imagemagick has support it).

I'll have a look at nextcloud/viewer#4 and see whether I can help there with a PR to get that feature. Thanks for pointing me in the right directions.

You're welcome! Thanks for your interest :)
Let me know if I can help pointing other stuff or if you're confused about some part :wink:

Hi @skjnldsv, just did the change and sent a PR. Please check https://github.com/nextcloud/viewer/pull/485 as well.

I'm also an iPhone user with the same wish to use heic format in my nextcloud. I also changed the viewer app like steiny2k instructions. That works for me in the viewer app without any issues.

No I want also use heic format in the new photo app. So, I add the heic (mime) support to application.php. My test folder structure looks like this: /Photos/test/image.heic

But if I open a heic photo in the photo app I see an error (Your Albums View) :
image

image

That's the browser console output:
image

If I open the same heic photo in the photo (Your photos view) the photo will be displayed

image

Very strange behavior, where I have no clue to solve the error. The error occur in nextcloud 18.0.4 and 19rc3.

Because the viewer doesn't support heic @steiny2k
see https://github.com/nextcloud/viewer/pull/485

@skjnldsv Is this solved as well?

is this working in Nextcloud 21?

Yes if you enable the heic preview provider (see docs)

I have it enabled in the config file but the HEIC preview does not work. I opened a help thread on the forum https://help.nextcloud.com/t/heic-in-browser/111656/7

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OlavStornes picture OlavStornes  路  4Comments

JonOfUs picture JonOfUs  路  13Comments

dlauper picture dlauper  路  13Comments

iwanttobefreak picture iwanttobefreak  路  7Comments

tillwf picture tillwf  路  14Comments