OOP Image Processing for PHP

OOP Image Processing for PHP

Released 5 years ago , Last update 5 years ago

Object-oriented image manipulation with simple and useful API. Support resize, crops, watermarks, round corners, filters, etc.

ImageProcessor - easy and intuitive imaging manipulation by PHP. Full object-oriented API, you can extend your own handler.

ImageProcessor supports:

  • Read image from PNG, JPG, GIF, BMP (Windows and Mac).
  • Save image to PNG, JPG
  • Create thumbnails
  • Add PNG-watermark to image (with position options)
  • Manage and delete thumbnails
  • Resize image
  • Smart proportional resize
  • Cut and crop image
  • Cutting fragments
  • Round image corners
  • Blurring (smooth)
  • Gaussian Blur
  • Brightness adjustment
  • Contrast adjustment
  • EdgeDetect filter
  • Gamma correction
  • Negate image
  • Grayscale image
  • Pixelate effect
  • Sharpen effect
  • Emboss effect


  • PHP 5.2+
  • GD2 php-extension


14 day 14-day money-back guarantee


Developer License

  • Perpetual license

  • 1 project

  • Can distribute code and binary products

  • Commercial use

Documentation and usage example

Example: open image1.jpg, make it grayscale and save to image2.png

$processor = new ImageProcessor('image1.jpg');
$processor->addAction(new ImageProcessor_ActionGrayscale());
$processor->addAction(new ImageProcessor_ActionToPNG('image2.png'));

Example: open image1.jpg, resize it to 100x100px (cut-mode) and save to image2.png

$processor = new ImageProcessor('image1.jpg');
$processor->addAction(new ImageProcessor_ActionResizeCrop(100, 100));
$processor->addAction(new ImageProcessor_ActionToPNG('image2.png'));

Example: open image1.jpg, resize it to 100x100px, gamma correct and save to image2.png

$processor = new ImageProcessor('image1.jpg');
$processor->addAction(new ImageProcessor_ActionResizeProportional(100, 200));
$processor->addAction(new ImageProcessor_ActionGammaCorrect(1.0, 1.3));
$processor->addAction(new ImageProcessor_ActionToPNG('image2.png'));

Example: open image1.jpg, resize it to 100x100px, add watermark and save to image2.jpg with JPEG-quality 75

$processor = new ImageProcessor('image1.jpg');
$processor->addAction(new ImageProcessor_ActionResizeProportional(100, 200));
$processor->addAction(new ImageProcessor_ActionWatermarkPNG('watermark.png', 'center', 'center'));
$processor->addAction(new ImageProcessor_ActionToJPEG('image2.jpg', 85));

Easy way to create image thumbnails: ImageProcessor_Thumber have static-methods. They returns path to created thumb-files.

echo ImageProcessor_Thumber::MakeThumbProportional('image1.png', 100, 100);
echo ImageProcessor_Thumber::MakeThumbCrop('image1.png', 100, 100);

Easy way to delete (clean) thumbnails:


Base syntax of ImageProcessor is:

// create processor
$processor = new ImageProcessor('image-file.jpg');

// add some actions

// run processor

Supported actions:

  • ImageProcessor_ActionBlurGaussian
  • ImageProcessor_ActionBrightness
  • ImageProcessor_ActionColorize
  • ImageProcessor_ActionContrast
  • ImageProcessor_ActionCut
  • ImageProcessor_ActionEdgeDetect
  • ImageProcessor_ActionEmboss
  • ImageProcessor_ActionGammaCorrect
  • ImageProcessor_ActionGrayscale
  • ImageProcessor_ActionNegate
  • ImageProcessor_ActionPixelate
  • ImageProcessor_ActionResizeCrop
  • ImageProcessor_ActionResizeProportional
  • ImageProcessor_ActionRoundCorners
  • ImageProcessor_ActionSharpen
  • ImageProcessor_ActionSmooth
  • ImageProcessor_ActionToJPEG
  • ImageProcessor_ActionToPNG
  • ImageProcessor_ActionWatermarkPNG
  • You can create your own action by example of any ImageProcessor_Action class.

Try ImageProcessor ;)

2 licenses, starting from From » $9.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
No comments have been posted yet.