0

i've tried to ouput this in a chunk :

[[pthumb? &input=`[[+image]]` &options=`w=320` &toPlaceholder=`thumb`]]
[[+thumb.height]]`

It displays only once if I refresh the page, it does not appear anymore.

Question is there a solid way to display the height of a resized image (with pthumb, phpthumbup or phpthumbof?

OptimusCrime
  • 14,662
  • 13
  • 58
  • 96
Sylvain Le Bihan
  • 163
  • 1
  • 2
  • 13

1 Answers1

0

Your call pthumb is cached, so it properly display only once, if you need to get height placeholder all time - so call snippet not cached (with !) -

[[!pthumb? &input=`[[+image]]` &options=`w=320` &toPlaceholder=`thumb`]]
[[+thumb.height]]`
Vasis
  • 2,281
  • 1
  • 16
  • 23