bpatrik / pigallery2

A fast directory-first photo gallery website, with rich UI, optimized for running on low resource servers (especially on raspberry pi)
http://bpatrik.github.io/pigallery2/
MIT License
1.75k stars 203 forks source link

Request: (Apple) HEIC images #97

Open iAmRenzo opened 5 years ago

iAmRenzo commented 5 years ago

Support of heic images from iPhone

rubpa commented 3 months ago

Thank rhatguy! Here's what worked. I could not find supported formats in the Settings UI. Hence modified config.json, Photo -> supportedFormats and added heic there. Then in Settings -> Indexing -> Run now: Gallery reset. The heic photos started showing up. As you have pointed out earlier, the thumbnails are square but the photos load correctly.

Using Firefox on Windows, the heic photos do show up even when clicked. I understand that the webp format is loaded in this view. Only when I zoom in (double click), the heic seems to be transferred and it doesn't show the photo. However, pinch zoom photo does show on Safari on the iPhone I have.

bpatrik commented 2 months ago

I guess FF doe snot support heic. When you zoom the original is loaded, otherwise webp. Photos are square because there is an issue in the metadaloader to determine its exact dimension, so a default 1x1 is used (you can double check that in the info sidebar when you preview the photo.

yllekz commented 2 months ago

How does one "reset the database" ? I tried stopping the container, removing the "db" folder, and restarting the container, however that reset the setting in which I added the heic/heif files under supported file formats.

bpatrik commented 1 month ago

You can reset by hitting this button: kép

Probably need to change the settings to be advanced or similar on the top.