PunyPNG PHP API compresses images using the PunyPNG Web service. It sends HTTP requests to upload one or more image files to the PunyPNG Web services API Web server so it can compress them. It can download the images compressed by PunyPNG individually or in a group in a .zip archive. The downloaded images are stored in a configurable download directory.
Multipe Image Resizer Script is a PHP class which can resize images in several ways. It can take an image in JPEG, PNG, or GIF format and resize it to exactly the given width and height, the given width, keeping the original proportions of the height, the given height, keeping the original proportions of the width, an automatically-determined given width or height, keeping the proportions of the other dimension, or a cropped area, keeping the original proportions. The class comes with a script which can call the class to resize many images at once.