I’m finishing up an application that’s built on WordPress that has required that I programmatically resize images. When it comes to building themes or plugins, it’s relatively easy to specify add_image_size
and then let the user interface and core application do it’s thing.
But in my case, the end user will have no idea that the actual application is built on WordPress and the image resizing function needed to be a little more tailored for specific templates (or views)
So rather than use the typical WordPress facilities for uploading and resizing images, here’s how to programmatically resize images in WordPress.