core icon indicating copy to clipboard operation
core copied to clipboard

Stop using the PNG format for HEIC thumbnails

Open tmysik opened this issue 1 year ago • 5 comments

Steps to reproduce

  1. enable preview for HEIC files (use the latest Imagick, install php-imagick and enable preview in the config, enabled by default)
  2. upload a HEIC file (photo)
  3. access this file via your web browser
  4. 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.

tmysik avatar Jul 05 '24 17:07 tmysik

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.

iasdeoupxe avatar Nov 30 '24 12:11 iasdeoupxe

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.

github-actions[bot] avatar May 30 '25 01:05 github-actions[bot]

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.

tmysik avatar May 30 '25 05:05 tmysik

I strongly second @tmysik when thumbnails go into 5 Megabytes or more this is clearly no enhancement but a bug.

cortho avatar Jul 25 '25 12:07 cortho

Contributions welcome! THX

DeepDiver1975 avatar Jul 25 '25 13:07 DeepDiver1975