Skip to content

This SilverStripe module generates webp images from resized jpeg and png images.

License

Notifications You must be signed in to change notification settings

martinviolet88/silverstripe-webp-images

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilverStripe Webp Images

This SilverStripe module generates webp images from resized jpeg and png images.

Requirements

  • SilverStripe ^4.0
  • GD with webp support

Installation

composer require webmen/silverstripe-webp-images

Next, you'll need to run a dev/build (or at least flush) to allow access to files with the .webp extension from the .htaccess in your assets directory.

Configuration

SilverStripe\Core\Injector\Injector:
  TheWebmen\WebpImages\Assets\WebpGenerator:
    properties:
      enabled: true
      quality: 80

To disable generating webp images in code

WebpGenerator::singleton()->setEnabled(false)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

This SilverStripe module generates webp images from resized jpeg and png images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%