I've been meaning to add webp support for a little while now, the only thing stopping me was that I wasn't sure how much browser support it has, and I didn't want to risk some uploaded files appear broken in browsers without webp support. I looked it up after seeing this thread, and as it turns out, most browsers have supported it for a while now. Actually, the only one that doesn't now is Internet Explorer. If you're still using IE, that's your problem. It doesn't even support webm files without an external library.>>17133>I think the whole point of that format is to try to prevent re uploading of images.
The reason it's being used more is that it has better compression than PNG and JPEG, and much more compression than GIF, even with transparency in the webp file
As far as reusing already uploaded files to save space (which isn't even a problem here) I did get an idea a while ago to implement something like that. When you upload a file, it would scan the database to see if that file has already been uploaded somewhere. If it already exists on the hard drive, it would discard the new file and make your post link to the old file. When there are no more posts that use that file, it would then delete it.
The potential problem with this is that it would require TinyBoard to rescan every post in the database when someone uploads a file (and this is an imageboard so many posts have files), which could add complexity and waste time.
This post was edited by its author on .