• I am using wordpress to share some stock photos of some photographs I have taken. I am wanting underneath the image to display the dimensions (size) of the photo. Anyone have any idea how I could to this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter charlene2021

    (@charlene2021)

    I see this on php.net

    <?php
    $size = getimagesize("https://www.example.com/gifs/logo.gif");
    
    // if the file name has space in it, encode it properly
    $size = getimagesize("https://www.example.com/gifs/lo%20go.gif");
    
    ?>

    but it would be a pain to have to put the url in every time

    Thread Starter charlene2021

    (@charlene2021)

    Any PHP gurus know?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Photo Dimensions’ is closed to new replies.