Add support for WEBP .webp files

35 views
Skip to first unread message

John Smith

unread,
Jan 13, 2026, 4:51:40 PMJan 13
to AtoM Users
Adding support for .webp image files would be useful as these offer great savings on disk space and are very lightweight on download and are supported in all modern browsers and you can use the <picture> element to provide fall bask .jpg. 

Since AtoM appears to use exec() calls to magick to generate thumbnails etc. - not the PHP API for magick as it should - this should be quite straight forward to implement? 

Similarly the watermarking with magick could be improved using text overlays rather than using .png files which make the viewing copies look yeuch! For example the magick command (extract from a bash script I use)

magick "$output_jpeg" \
\( -background none \
-fill "rgba(255,255,255,0.2)" \
-font Arial \
-pointsize 96 \
label:"Example Archives" \
-rotate 45 \) \
-gravity center \
-composite "$output_jpeg"

Produces this type of watermark

Just a suggestion :-)

P39180.jpg

Sarah Mason

unread,
Feb 2, 2026, 8:30:29 AMFeb 2
to AtoM Users
Hi John,

Thank you for the suggestions! You make some good points there. Adding these to the AtoM issues in GitHub would be really useful as our project maintainers can then review the suggestions. That being said, I see you have already commented on the watermark feature request here. It might be a good place to add your code as another comment there! Though putting it here is useful for others who might want to create watermarks outside of AtoM as well, so thank you for sharing.

There isn't currently an issue for support for .webp files, but that being said I have tested uploading to my test instance with an example file and it works (I am currently running version 2.9.2). The documentation here doesn't say we currently support them, but it is because we haven't tested this. It might be worth putting in an issue for testing compatibility with .webp and perhaps in the end we only need a documentation update. Have you tried loading .webp files? and have you have any luck? I can see how the size savings would be a benefit!

Please let me know if you have any questions.

Best wishes,
Sarah Mason 
Contributor Success Specialist
Reply all
Reply to author
Forward
0 new messages