class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I have a problem that I hope someone can help me solve.
In order to save space I am working with files converted to webp. Wow, space is saved with this format. The problem I am having is that if I upload a jpg, jpeg, jfif, png file, for example, everything works out fine. But when I upload a webp file the final file is the same original file.
It is as if the class.upload said ... "Since you want a final file in webp and this one that you ask me to process is already a webp then no way, I'll leave you the same and save me work.".
I have a problem that I hope someone can help me solve.
In order to save space I am working with files converted to webp. Wow, space is saved with this format. The problem I am having is that if I upload a jpg, jpeg, jfif, png file, for example, everything works out fine. But when I upload a webp file the final file is the same original file.
It is as if the class.upload said ... "Since you want a final file in webp and this one that you ask me to process is already a webp then no way, I'll leave you the same and save me work.".
Thanks for the help.
This is my code ...