WebP provides excellent lossless and lossy compression for images on the web. With WebP, website administrators and web developers can create smaller, richer images, making the web faster. Compared to PNG, WebP lossless images are 26% smaller. At the same SSIM quality index, WebP lossy images are 25-34% smaller than comparable JPEG images.
The screenshot function usually only provides images in PNG/JPEG formats by default, and manual conversion is too cumbersome. I don't know if this issue of Snipaste that supports the webp format has been resolved. 😜
When searching for a solution, I found this article 全站今日起使用 WEBP 格式,截图工具 ShareX 分享, which shares a way to support webp screenshots through ShareX + imagemagick. I tried it and it feels good, so I'm documenting the process. 😏
Software Preparation#
- ShareX | Github Repo
- imagemagick | Github Repo
- For imagemagick, download the first Q16-HDRI-x64-dll.exe. It is an installation file that needs to be run for installation.
ShareX Action Settings#
- Follow the image below and go to the action settings page by clicking
Task Settings - Actions - Add
.
- Follow the image below to configure the action parameters:
"$input" -quality 50 -define WebP:lossless=true "$output"
ShareX Screenshot Task#
- Set the task order after taking a screenshot in the order shown in the image below.
- Configuration is complete, press the
Screenshot Shortcut Key
to experience it immediately.
PS: The images and annotations in this article are all created using ShareX. 😆