Skip to content
Snippets Groups Projects

Automated Project Update Bot fixes

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -22,7 +22,7 @@ class WebP extends ConfigurableImageAPIOptimizeProcessorBase {
if ($source_image) {
$destination = $image_uri . '.webp';
// @todo: Add try/catch.
imagewebp($source_image->getToolkit()->getResource(), $destination, $this->configuration['quality']);
imagewebp($source_image->getToolkit()->getImage(), $destination, $this->configuration['quality']);
// Fix issue where sometimes image fails to generate.
if (filesize($destination) % 2 == 1) {
file_put_contents($destination, "\0", FILE_APPEND);
Loading