Recommendation for a PHP class to convert jpeg to webp #convert jpeg to webp
Edit
by cristian osinaga - 5 years ago (2020-03-30)
How to resize a jpg an convert the same in a .webp file
| I need resize a image .gif or .jpg and at same time to convert the image in a .webp image format. |
Ask clarification
1 Recommendation
class.upload.php: Process files and images uploaded via a form
It is the ideal class to quickly integrate file upload and image manipulation in your site. That's all you need for a gallery script for instance.
It manages the uploaded file and allows you to do whatever you want with the file as many times as you want. If the file is an image, you can convert and resize it, rotate it, crop it in many ways; You can also add borders, frames, bevels, add of text labels and watermarks or apply graphic filters such as unsharp mask, contrast or brightness correction, colorization, negative, greyscale, reflections and more. Transparency and true color are fully supported. JPEG, PNG, GIF and BMP are supported.
Security features and file management functions are provided. Flash uploaders are supported. The class can also work on local files, useful for batch processing, and can circumvent open_basedir restrictions. Files can be output directly to the browser. The error messages are internationalized, and translations provided. Flash uploaders and XMLHttpRequest uploads are supported.
The class is mature and well documented, already widely used around the world. It is compatible with PHP 4, 5 and 7.
| by Manuel Lemos 26695 - 5 years ago (2020-03-31) Comment
You may want to try this class that does precisely what you ask and a few more things. |