Notice: Trying to get property of non-object in /home/wpcmsnin/snippets.wpcms.ninja/wp-content/plugins/wordpress-seo/frontend/schema/class-schema-utils.php on line 25

Image Gallery from a Directory of Images

Here is a nice little script that takes a directory full of images, creates a thumbnail of said image and saves it to a directory, and then displays the gallery of images.  I didn't create this code but found a guy by the name of David Walsh who took code written by...