syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
393 stars 40 forks source link

Photoprism: filetype .heic not supported #712

Closed Morgendorfferr closed 1 week ago

Morgendorfferr commented 3 weeks ago

Newer iPhone export Photos in heic format. Photoprism should support that format (see Photoprism Doc but is returning on importation the error

import: failed to create preview image for ####.heic (file type heic not supported)

The .heic file will be imported into the originals folder but can not be displayed. To reproduce import a .heic file (and no .jpg / .png file with the same name). The error message is shown in the log and errors tab.

On this issue I found an explanation here

https://github.com/photoprism/photoprism/discussions/4073#discussioncomment-8630228 1

which seems to say that in the current version there should be no file /usr/local/bin/heif-convert since this is a depreciated script causing that issue. But I can find this file in my syncloud docker installation under /snap/photoprism/current/photoprism/...

I don’t know if this is truly the reason for my issue - but if Photoprism is not on the current version could you do an update?

Morgendorfferr commented 1 week ago

The error seems to effect all RAW Formats, not only .heic. But for RAW Photos (in my example a .orf file) the Error message is maybe more helpful:

Error

import: failed to create preview image for 2024/04/20240404_192156_3272BFD9.orf (
+++ dirname /snap/photoprism/current/photoprism/bin/darktable-cli.sh
++ cd /snap/photoprism/current/photoprism/bin
++ cd ..
++ pwd
+ DIR=/snap/photoprism/current/photoprism
++ echo /snap/photoprism/current/photoprism/lib/x86_64-linux-gnu
+ LIBS=/snap/photoprism/current/photoprism/lib/x86_64-linux-gnu
++ echo /snap/photoprism/current/photoprism/usr/lib/x86_64-linux-gnu
+ LIBS=/snap/photoprism/current/photoprism/lib/x86_64-linux-gnu:/snap/photoprism/current/photoprism/usr/lib/x86_64-linux-gnu
++ echo /snap/photoprism/current/photoprism/usr/lib
+ LIBS=/snap/photoprism/current/photoprism/lib/x86_64-linux-gnu:/snap/photoprism/current/photoprism/usr/lib/x86_64-linux-gnu:/snap/photoprism/current/photoprism/usr/lib
+ /snap/photoprism/current/photoprism/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 --library-path /snap/photoprism/current/photoprism/lib/x86_64-linux-gnu:/snap/photoprism/current/photoprism/usr/lib/x86_64-linux-gnu:/snap/photoprism/current/photoprism/usr/lib /snap/photoprism/current/photoprism/bin/darktable-cli /data/photoprism/photos/originals/2024/04/20240404_192156_3272BFD9.orf /data/photoprism/photos/originals/.photoprism/storage/sidecar/2024/04/20240404_192156_3272BFD9.orf.jpg --apply-custom-presets false --width 7680 --height 7680 --hq true --upscale false --core --library :memory:path lookup '/snap/photoprism/130/photoprism/usr/lib/x86_64-linux-gnu/../share/darktable' fails with: **'No such file or directory‘**
)

/snap/photoprism/current/photoprism/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 --library-path /snap/photoprism/current/photoprism/lib/x86_64-linux-gnu:/snap/photoprism/current/photoprism/usr/lib/x86_64-linux-gnu:/snap/photoprism/current/photoprism/usr/lib /snap/photoprism/current/photoprism/bin/darktable-cli /data/photoprism/photos/originals/2024/04/20240404_192156_3272BFD9.orf /data/photoprism/photos/originals/.photoprism/storage/sidecar/2024/04/20240404_192156_3272BFD9.orf.jpg --apply-custom-presets false --width 7680 --height 7680 --hq true --upscale false --core --library :memory:path lookup '/snap/photoprism/130/photoprism/usr/lib/x86_64-linux-gnu/../share/darktable' fails with: **'No such file or directory‘**

cyberb commented 1 week ago

ok let me check

cyberb commented 1 week ago

@Morgendorfferr can you update the app and let me know if it better or not?

Morgendorfferr commented 1 week ago

It partially works: .orf works well, .heic still produces the error:

import: failed to create preview image for 2024/07/20240720_195610_FE28A4FE.heic (file type heic not supported)

cyberb commented 1 week ago

Ok let me fix helic support

cyberb commented 1 week ago

Pushed new update, can you upgrade and check again please?

Morgendorfferr commented 1 week ago

Great! It works, many thanks!