flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
25.03k stars 1.6k forks source link

Add JPEG XL (JXL), AVIF support for #3740

Closed Mk007V2 closed 2 weeks ago

Mk007V2 commented 1 month ago

Feature Description

Currently, the most efficient format to save screenshot is WEBP. Which is ok, but inferior in quality to new formats like AVIF and JPEG XL. Most of the time users copy the screenshot into clipboard and do not save it, so the people who do store screenshot would benefit from more efficient formats. image

AVIF is widely supported and likely to be more popular, because it is supported by Google and AOMedia. It would also be great to have JPEG XL as an option. It is a new format, currently supported by ONLY Apple products such as iOS and Safari. However, there are a lot of people using this format to store because of its superior quality for mid-filesized images.

Both of them are superior to existing image formats in flameshot, as well as royalty-free; meaning, there should be no trouble using this format for the purpose of this program.

Personally, I have done some testing on comparing those formats and both AVIF and WEBP bend colors on low-filesized screenshots, albeit AVIF is more efficient than WEBP. On the contrary, JPEG XL does not suffer from the same problem, but is less wide-spread. I would love to see both of them in flameshot, to have more choice.

Thanks for making flameshot! I enjoy using this program and it is useful.

novomesk commented 1 month ago

Using AVIF and JXL is possible if you add plugins:

https://github.com/flameshot-org/flameshot/issues/3062

Mk007V2 commented 2 weeks ago

Excellent. It works !