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.
Vardan, thanks for your reply. Indeed, before consulting here I added that line at the beginning of the file and after calling the class. However nothing happened. I must point out that I do not use Composer or Laravel, I program in pure PHP without frameworks. In my case, what should I do to enable that option correctly? A cordial greeting.Reply
It worked for me! Thanks for the help. Today with more time and more calm I followed the steps that you indicated to me to put "namespace Verot \ Upload;" at the beginning of the file that executes the image upload and it worked correctly. I can finally generate WEBP files for my web pages.Reply
Go to top of the page and add the name space as the first line