We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2879
    • 1 Posts
    this is my first post, so hello everybody!

    i’m looking for a solution that allows me to output the width and height of a generated image. example:

    <img src="[[+image:phpthumbof=`w=450`]]" width="phpthumbof-width" height="phpthumbof-height" />

    "phpthumbof-width" and "phpthumbof-height" should both be filters that output the generated image width and height of phpthumbof.

    does anything like this exist? thanks for the help.
      • 16337
      • 44 Posts
      not a 100% solution but a workaround if you can predefine both dimensions:


      <img src="[[+image:phpthumbof=`w=450&h=300&zc=1`]]" width="450" height="300" />


      I posted the feature request on git: https://github.com/splittingred/phpThumbOf/issues/17