0

I try to use the phpthumbof modx addon in an getResources template chunk as a snippet, like shown in the code below. But it always gives me back this strange image with its version and the text "error messages disables" in red color and on a violet background.

Here my snippet call:

<img src="[[!phpthumbof? &input=`[[+tv.content__gallery__image]]` &options=`w=100&h100`]]" />
halfer
  • 19,824
  • 17
  • 99
  • 186
Thomas Venturini
  • 3,500
  • 4
  • 34
  • 43

1 Answers1

0

There is an error in your snippet call with the height property, try this:

<img src="[[!phpthumbof? &input=`[[+tv.content__gallery__image]]` &options=`w=100&h=100`]]" />

Next check that imageMagick is working properly on your server. That error sounds like a missing ImageMagick install.

P.S I would also recommend you to take a look at the pThump extra to replace phpthumbof. It does the same thing, but is a lot faster.

dannevang
  • 141
  • 2