0xC0000054 / pdn-heicfiletype-plus

A Paint.NET filetype plugin that allows HEIC images to be loaded and saved with transparency.
https://forums.getpaint.net/topic/116873-heic-filetype-plus/
GNU General Public License v3.0
38 stars 1 forks source link

File size when saving is much larger than original #8

Closed veqryn closed 1 year ago

veqryn commented 1 year ago

My Samsung Galaxy S21 takes photos in heic format. On average, they are around 1.5 MB large. If I open them in paint.net with this plugin, then save them again, whether I change anything or not, the saved size is about 5 MB. In order to get a similar size as the original, I have to put the vague quality setting at around 60%. Is this potentially a bug or something that could be improved? Is this all related to the quality setting? Is there any way to see the quality setting of the original heic image? Is there any way to edit a heic image in a way that preserves both the original quality and the original file size? For example, if the only change I am making are cropping, I feel like the image shouldn't have to lose quality and should also decrease in file size or stay the same size at worst.

0xC0000054 commented 1 year ago

Is this potentially a bug or something that could be improved?

I do not think it is a bug.

Is this all related to the quality setting?

The quality slider, Chroma Subsampling, Encoding Speed / Quality and possibly other settings can affect the file size of the output image.

A Chroma Subsampling value of 4:2:0 (Best Compression) will produce the smallest file size, at the expense of potentially reducing image quality. The slower Encoding Speed / Quality options may produce a smaller image, at the expense of taking longer to save.

Is there any way to see the quality setting of the original heic image?

Not as far as I know. Even if this was possible the information would only be relevant for that specific encoder.

Is there any way to edit a heic image in a way that preserves both the original quality and the original file size?

I do not know.