Stop using the PNG format for HEIC thumbnails
Steps to reproduce
- enable preview for HEIC files (use the latest Imagick, install php-imagick and enable preview in the config, enabled by default)
- upload a HEIC file (photo)
- access this file via your web browser
- its preview(s) is (are) generated, in the PNG (!) format
Expected behaviour
The preview image(s) should not be created in the PNG format, since this format is not usable for photos at all. In my case, the preview files occupy even more space than the original, large photos themselves (20 GB vs. 19 GB). It seems to me that the e.g. the JPG format would be much more suitable.
Actual behaviour
Thumbnails of any HEIC file/photo are generated in the PNG format.
Note: The reason is that the HEIC.php file that generates these thumbnails extends the Bitmap class which uses only the PNG format and cannot be configured to any other file type easily.
Thank you.
Could be wrong but looks like all image types (not only HEIC) are getting thumbnails in the .png format, at least noticed .jpg files on my installation.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Still valid, no change here.
@DeepDiver1975 IMHO, this can hardly be an enhancement - try to have 1 GB of HEIC images and let OwnCloud generate 1.5 or 2 GB thumbnails. That does not make any sense at all.
I strongly second @tmysik when thumbnails go into 5 Megabytes or more this is clearly no enhancement but a bug.
Contributions welcome! THX