You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the error:
{"message":"no decode delegate for this image format `WEBP' @ error/blob.c/BlobToImage/481","code":400,"type":"storage_file_type_unsupported","version":"1.8.0"}
Also in storage console, the previews of webp images stopped from showing:
preview:1 GET ....long file url..... 400 (Bad Request)
👍 Expected behavior
It should work as before in 1.7.4. The images should be accessible via preview endpoint.
👎 Actual Behavior
It actually shows an error message
🎲 Appwrite version
Version 1.8.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
@tawfeks perhaps the order of installed packages is causing issues. As a workaround, you can reinstall imagemagick-dev by exec'ing into the appwrite container and running the following:
Temporary workaround:
Suggested by @stnguyen90, running inside the container:
docker exec -it appwrite sh
apk del imagemagick-dev
apk add imagemagick-dev
⚠️Note: This works only until the container is rebuilt or docker-compose down is executed. On newly built containers, the issue reappears.
Permanent solution (applied to my production Appwrite instance on VPS):
To ensure WebP previews work reliably in production, I applied the following solution:
Clone my forked Appwrite repository with the WebP image preview fixed:
Activity
[-]WEBP preview not working after upgrading to 1.8.0[/-][+]WEBP images preview not working in 1.8.0[/+]stnguyen90 commentedon Oct 24, 2025
@tawfeks thanks for raising this issue! 🙏🏼 We'll look into this promptly.
Related discord thread: https://discord.com/channels/564160730845151244/1431187289702268968
tysoncung commentedon Oct 25, 2025
stnguyen90 commentedon Oct 26, 2025
@tawfeks perhaps the order of installed packages is causing issues. As a workaround, you can reinstall imagemagick-dev by exec'ing into the appwrite container and running the following:
usmandilmeer commentedon Oct 26, 2025
@stnguyen90 thank you, it really fixed the issue.
usmandilmeer commentedon Oct 27, 2025
Fix WebP image preview issue in Appwrite:1.8.0
Problem:
The default Appwrite:1.8.0 container included outdated ImageMagick packages, not showing the WebP image previews
Temporary workaround:
Suggested by @stnguyen90, running inside the container:
docker-compose downis executed. On newly built containers, the issue reappears.Permanent solution (applied to my production Appwrite instance on VPS):
To ensure WebP previews work reliably in production, I applied the following solution:
docker-compose.ymlto use the newly built image under the Appwrite service:After this, enjoy the flow, WebP image previews work reliably even after
docker-compose downanddocker-compose up.New appwrite container running with my forked repo image and imagemagick versions after the fix:
tawfeks commentedon Oct 27, 2025
Thanks for your help guys
It was an easy workaround and it worked! Very nice.