#How to use lossless webp with getImage API

2 messages · Page 1 of 1 (latest)

winter sonnetBOT
#

Hi @jovial cedar. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The knowledge sources do not explicitly state that setting quality to 100 in the getImage API will force WebP to use lossless compression mode. The documentation only mentions that the quality property can be set to a number from 0 to 100, or to a preset like low, mid, high, or max, and that this is interpreted differently between formats. However, it does not clarify whether quality: 100 for WebP results in lossless compression, or if there is a separate way to explicitly request lossless WebP output via getImage or the Astro image components quality property reference getImage reference.

Therefore, based on the available documentation, it is unclear if quality: 100 guarantees lossless WebP output. If you require true lossless WebP, you may need to consult the underlying image service or library documentation, or test the output to confirm.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: