QwikDev/qwik

[✨]Automatically compress images to support more devices.

xhcy1314 opened this issue · 0 comments

Is your feature request related to a problem?

Currently, image transcoding in the project only supports a single configuration, allowing only AVIF, WebP, or PNG to be passed in. Additionally, the transcoded resources do not include the original image format. I believe this approach does not align with a popular framework because a single configuration can lead to situations where devices that do not support a certain image format cannot view the images, causing anomalies.

Describe the solution you'd like

Compressing and transcoding while retaining the original image format, adding AVIF, WebP, and the original image format allows for automatic selection of the optimal image based on device capabilities.
PR: #6161

Describe alternatives you've considered

Additional context

No response