<![CDATA[ pThumb filters not working on Revo 2.2.16 - My Forums]]> https://forums.modx.com/thread/?thread=96369 <![CDATA[pThumb filters not working on Revo 2.2.16]]> https://forums.modx.com/thread/96369/pthumb-filters-not-working-on-revo-2-2-16#dis-post-521521
Both codes below don't have the mask:

<img src="
[[pthumb?
    &input=`[[+tv.itemImage]]` 
    &options=`&fltr[]=mask|assets/templates/images/contentpage-img-mask.png&f=png&w=336&h=195&zc=1`
    &debug=`1`
]]
" />


<img src="[[+tv.itemImage=`&f=png&w=336&h=195&zc=1&fltr[]=mask|assets/templates/images/contentpage-img-mask.png`]]" alt="" width="336" height="195" />



The debug says:

[2015-02-27 16:24:02] (ERROR @ /index.php) [pThumb] Resource: 397 || Image: /home/mydomain/domains/mydomain.nl/public_html/bestanden/051308_mg_9660.jpg
:: Processed ::
Resizer debug output:
    [0] => Resizer v1.0.1
    [1] => Using GD
    [2] => Input options:
  'fltr' => 
  array (
    0 => 'mask|assets/templates/images/contentpage-img-mask.png',
  ),
  'f' => 'png',
  'w' => '336',
  'h' => '195',
  'zc' => '1'
    [3] => Original - w: 3504 | h: 2336 (8.19 MP)
    [4] => New - w: 336 | h: 224
    [5] => ZC - start: (0, 14) | box: 336x195 px
    [6] => Wrote /home/mydomain/domains/mydomain.nl/public_html/bestanden/image-cache/051308_mg_9660.03e0be69.png
    [7] => Dimensions: 336x195 px
    [8] => Execution time: 1330 ms
-


there is no mention at all of the processing of the filter. When I try with the wmi filter it does show up in the debug lines.

I also uploaded the phpThumb demos and tests and all is ok, GD is running 'bundled (2.0.34 compatible)'.

I'm running out of ideas how to fix this.. Hope someone on this forum knows what could be going on.

I did see some bugfixes in the changelog for phpThumb, could that be related?

This is a big problem for my client because the site looks bad now without the filters.

Thanks for any help!]]>
michelle84 Feb 27, 2015, 11:22 AM https://forums.modx.com/thread/96369/pthumb-filters-not-working-on-revo-2-2-16#dis-post-521521
<![CDATA[Re: pThumb filters not working on Revo 2.2.16]]> https://forums.modx.com/thread/96369/pthumb-filters-not-working-on-revo-2-2-16#dis-post-528308 Quote from: aaantz at Jul 15, 2015, 09:27 AM
Hi Michelle,
have you found a solution to this problem yet? I would love to use the mask fltr, too.

No, I haven't managed to get it working with pthumb. I switched to phpthumbsup (http://modx.com/extras/package/phpthumbsup), which is working fine with fltr.

Use it like this:

<img src="[[*image:phpthumbsup=`&w=336&h=195&zc=1&fltr[]=mask|mask.jpg&f=png`]]" alt="" width="336" height="195" />
]]>
michelle84 Jul 15, 2015, 04:40 AM https://forums.modx.com/thread/96369/pthumb-filters-not-working-on-revo-2-2-16#dis-post-528308
<![CDATA[Re: pThumb filters not working on Revo 2.2.16]]> https://forums.modx.com/thread/96369/pthumb-filters-not-working-on-revo-2-2-16#dis-post-528307 have you found a solution to this problem yet? I would love to use the mask fltr, too.

Maybe ImageMagick is required, like it is for &zc parameters (besides "1")? Have a look here: https://github.com/splittingred/phpThumbOf/issues/19]]>
aaantz Jul 15, 2015, 04:27 AM https://forums.modx.com/thread/96369/pthumb-filters-not-working-on-revo-2-2-16#dis-post-528307