Skip to content

Can't create webp images with Resizer #64

@pepebe

Description

@pepebe

I'm trying to create webp images with pthumb, but using Resizer instead of phpThumb seems to cause problems.

Steps to reproduce:

Create a webP Thumbnail with pThumb:

        <source 
            srcset="[[+crops.xl.url:pthumb=`w=1140&q=100&f=webP`]]"
            media="(min-width: 1200px)"
            data-breakpoint="xl"
            data-org="[[+crops.xl.url]]"
        />
  • Set phpthumbof.use_resizer == 0: webp images are created.
  • Set phpthumbof.use_resizer == 1: pthumb returns a crop in the original format located inside the image-cache and I find an error message inside the modx log file.
[2020-07-03 10:42:19] (ERROR @ /paas/*****/www/core/components/phpthumbof/model/phpthumbof.class.php : 156) [pThumb] Resource: 1 || Image: /paas/c0583/www/crops/lg.95a9428b.cm6p6087_1.jpg
Could not cache thumbnail to file at: /paas/*****/www/assets/image-cache/lg.95a9428b.cm6p6087_1.54dea866.webP
Resizer debug output:
    [0] => Resizer v1.0.1
    [1] => Using Imagick
    [2] => Input file: /paas/****/www/crops/lg.95a9428b.cm6p6087_1.jpg
    [3] => Input options: 
  'q' => '100',
  'f' => 'webP'
    [4] => *** Error *** Save operation failed

Environment:

  • modxcloud
  • modx 2.7.3
  • pthumb 2.3.3
  • contentblocks 1.8.15
  • resizer 1.0.2-beta

Regards,

pepebe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions