[pmwiki-users] Have image.webp compatible with Thumblist recipe

Petko Yotov 5ko at 5ko.fr
Sat Sep 7 01:43:08 PDT 2024


On 07/09/2024 10:20, jdd at dodin.org wrote:
> Le 07/09/2024 à 07:13, Petko Yotov a écrit :
>> Should these be in a subdirectory to the original directory, or in a
>> parallel tree of subdirectories?
> 
> Keep it simple. I'm worried to have to fix again all my scripts with a
> new image format (what use when disk size is cheaper every month?) and
> new position of files

I already mentioned it, but to reply to your question, in addition to a 
very small file size, WebP can have *transparency*. Thumbnails with 
transparency and semi-transparent alpha channels (from originals with 
transparency) allow people to easily change their skin or their 
background, or enable a dark mode, or place thumbnails in a %frame%, and 
this will work better than thumbnails with a fixed solid color.

Not having to add a background color will also make the ThumbList/Mini 
code and configuration simpler.

WebP files can be opened and saved by PHP since version 5.4.

Petko



More information about the pmwiki-users mailing list