We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13986
    • 90 Posts
    What is the best way to get an image’s width and height after inserting it into a template variable.

    I have 2 thoughts on this:

    1) setup 2 more TVs (width input, height input) and manually enter the correct values when using the image TV

    or

    2) using a snippet to run php getimagesize on the fly when calling the TV value

    or is there a better way that I have missed?

      Jeremy Foster
      • 26931
      • 2,314 Posts
      anonymized-26931 Reply #2, 17 years ago
        • 13986
        • 90 Posts
        Thanks for the link, that is the way I was thinking, great to see an example already exits.

        Thanks sharkbait.
          Jeremy Foster