Skip to content

Example of how to generate webp image file from jpg or png image file with PHP.

License

Notifications You must be signed in to change notification settings

gitmasz/PHPWebPConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP WebP Converter

Example of how to generate webp image file from jpg or png image file with PHP. Created for learning purpose. Example project.

How to run it on local XAMPP server

To use imagecreatefromstring PHP function (which is used in this example project) You need GD library. This library is probably active on Your online server but it is disabled by default on XAMPP. To activate GD library for XAMPP with PHP 8 support follow steps below.

  1. Go to xampp control panel
  2. Click Config Button
  3. From Dropdown open file PHP (php.ini)
  4. Fine ;extension=gd
  5. Remove ; from start
  6. Restart XAMPP server

About

Example of how to generate webp image file from jpg or png image file with PHP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages