Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextcloud 23.03 - cannot open images in HEIC Format #8

Closed
Githopp192 opened this issue Aug 20, 2022 · 6 comments
Closed

Nextcloud 23.03 - cannot open images in HEIC Format #8

Githopp192 opened this issue Aug 20, 2022 · 6 comments

Comments

@Githopp192
Copy link

Githopp192 commented Aug 20, 2022

Actual behaviour

i can see/open all photos in HEIC Format, taken from iPhone 7, but all photos in HEIC Format, taken from iPhone XS, users are not able to view it.

Steps to reproduce

whenever i'm trying to open a *.heic photo from newer iPhones

Expected behaviour

users should be able to view the image

Client configuration details

--------------------------------

iPhone XS

Server configuration details

--------------------------------

Version: Intel(R) Xeon(R) E-2136 CPU @ 3.30GHz
Max Speed : 4300 MHz
Current Speed: 3300 MHz
Memory: 7.58GB

Operating System: Red Hat Enterprise Linux release 8.5 (Ootpa)

Webserver: Apache/2.4.37 (Red

Database: mysql 10.3.28-MariaDB,

PHP version: PHP Version => 7.4.26

Nextcloud: - version: 23.0.3.2

Updated from an older Nextcloud/ownCloud or fresh install:

Update from older nc

Where did you install Nextcloud from:

origin source

Signing status:

Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed
paste the results here.

No errors have been found.

@major-mayer
Copy link
Owner

Are you sure you are using this app? If not, this should be posted to @nextcloud/server
If yes, what are the steps to reproduce the issue?
Can you upload some photos that you can't convert successful?

@Githopp192
Copy link
Author

yes, used/tried both - access by server, access by app

  1. choose file, double-click

ScreenShot075

  1. error

ScreenShot074

  1. trying to convert the file

ScreenShot076

  1. error converting

ScreenShot077

and is the zipped FILE:

TEST.zip

@Githopp192
Copy link
Author

Details of heic format taken from iPhone 7: no issues at all

20220820_125823

Details of heic format taken from iPhone XS: issues
20220820_125930

@major-mayer
Copy link
Owner

major-mayer commented Oct 17, 2022

Hmm I cannot reproduce this on my end.
I was able to open the HEIC file normally, as you also could, but I was also able to convert this image with the imageconverter app without any problems.

However I noticed that when i try to convert this image, I get the following log entry that doesn't happen when I convert other images:

{"reqId":"xeuzFQ3uamw3PojAN0FA","level":3,"time":"2022-10-17T21:43:03+00:00","remoteAddr":"172.25.0.1","user":"admin","app":"PHP","method":"POST","url":"/apps/imageconverter/convert","message":"exif_read_data(): Incorrect APP1 Exif Identifier Code at /var/www/nextcloud/lib/private/Metadata/Provider/ExifProvider.php#20","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0","version":"25.0.0.17","exception":{"Exception":"Error","Message":"exif_read_data(): Incorrect APP1 Exif Identifier Code at /var/www/nextcloud/lib/private/Metadata/Provider/ExifProvider.php#20","Code":0 [...]}}

So maybe ImageMagick doesn't like something about your HEIC image, but i don't exactly know what "Incorrect APP1 Exif Identifier Code" means.

Can you maybe post your Nextcloud logs searching for imageconverter?
Or simply look what the convert endpoint responds using the browser network tab (I will add some logging to the app in case of an error).

@major-mayer
Copy link
Owner

I have just pushed a new version that logs errors in the Nextcloud logs and also in the browser console (if the server's response reaches the browser).

@major-mayer
Copy link
Owner

I will close this issue due to inactivity.
If you still experience this error, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants