stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.29k stars 795 forks source link

[Feature] Support HEIC images for photos taken on iOS devices #4115

Open Tildaar opened 1 year ago

Tildaar commented 1 year ago

Is your feature request related to a problem? Please describe. Stash does not support .heic image files at all, which are commonly used when taking photos on iOS devices.

Describe the solution you'd like .heic images should be added as images, similar to other image formats like .png or .jpg. Previews should be generated as for any other supported image format. Since most web browser do not support .heic files out of the box, those files need to be converted to a broadly adapted image format when displaying them in full resolution. To save storage, .heic files should be converted to another images format like .png on the fly and in memory from the stash server when serving the image data to the front end.

Describe alternatives you've considered .heic files can also be so called "live photos", which means, that the files does contain an embedded video data of a few seconds as well. Being also able to somehow view this video in the front end would be nice, but definitely optional. Being able to display the image data should be the main focus.

DogmaDragon commented 1 year ago

Not most browsers but all other browsers except for Apple don't support it due to absurd license fees. And even Apple support is limited to the newest versions.

ffmpeg also doesn't support it as of now.