PHP Imagizer - Image Manipulator

PHP Imagizer - Image Manipulator

Released 7 years ago , Last update 7 years ago

PHP Imagizer is a smart and easy-to-use image resizer, image watermarking and cropping component

One of the chalenging that comes with developing and maintaining content management systems (CMS), blogs or forums is to allow to users of the site an easy way to manipulate high quality images throughout the site without any graphical tools.

PHP Imagizer is object-oriented component which developed for those purposes and other use cases. It is well commented and easy-to-use component. Requires GD extension usually compiled in PHP.

With this component you can make transparent text and graphical watermarking, resize and preserve aspect ratio and crop images.

Features

  • Very simple and intuitive to use
  • Transparent text watermarking with option to change rotation, opacity, font size, font face, font color and shadow affect
  • Image watermarking
  • Resizing image to fit size, by weight and by height with preserving aspect ratio
  • Cropping
  • JPEG, GIF and PNG support
3.8
  • 5 0
  • 4 3
  • 3 1
  • 2 0
  • 1 0
4 Reviews Read Reviews

Pricing

14 day 14-day money-back guarantee

FREE

Personal License

  • Perpetual license

  • 1 site, unlimited servers

  • No distribution (hosted use only)

  • Non-commercial use

$24.99

Developer License

  • Perpetual license

  • Unlimited projects

  • Can distribute code and binary products

  • Commercial use

  • 12 months support

Usage Examples

Resize to fit size with preserving aspect ratio

include {PATH_TO_LIBRARY} . 'PhpImagizer.php';
// Source file name
$srcFileName = 'sourceImage.gif';
try {
    // Get instance
    $imagizer = new PhpImagizer($srcFileName);
    // Resize to fit 200px
    $imagizer->fitSize(200);
    // Save image
    $imagizer->saveImg('DestFileName.gif');
} catch (PhpImagizerException $e) {
   // Do something (Log, send email?)
}

Crop image

include {PATH_TO_LIBRARY} . 'PhpImagizer.php';
// Source file name
$srcFileName = 'sourceImage.gif';
try {
    // Get instance
    $imagizer = new PhpImagizer($srcFileName);
    // Crop image
    $imagizer->crop(200, 200);
     // Save image
    $imagizer->saveImg('DestFileName.gif');
} catch (PhpImagizerException $e) {
    // Do something (Log, send email?)
}

Text watermark

include {PATH_TO_LIBRARY} . 'PhpImagizer.php';
// Source file name
$srcFileName = 'sourceImage.gif';
// The path to the TrueType font you wish to use
$font = 'arial.ttf';
 try {
// Get instance
    $imagizer = new PhpImagizer($srcFileName);
    // Set shadow, transparency, color and size
    $params = array(
        'color' => '#FFFFFF',
        'transparency' => 70,
        'size' => 40,
        'font' => $font,
        'shadow' => 1 ,
    );
    // Make watermark at bottom center and save it to DestFileName.gif
    $imagizer->watermarkText('www.example.com', PhpImagizer::POSITION_BOTTOM_CENTER, $params);
    $imagizer->saveImg('DestFileName.gif');
} catch (PhpImagizerException $e) {
    // Do something (Log, send email?)
}
3 licenses, starting from From » FREE 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
  • TO Tiago Alexandre de Oliveira 4 years ago
    Nice man!
  • FV Federico Villa 6 years ago
    Great script Ruslan, this is what I was looking for weeks. Just wondering if the transparent background issue has been fixed.
  • Paulius Šarauskas 6 years ago
    Script lacks support for resizing images with transparent background.
    • Ruslan Glick Publisher 6 years ago
      Hello Paulius, Thank you for your feedback. Can you please give more information. What method you are using? Can you send me the image you are trying to resize?
    • Paulius Šarauskas 6 years ago
      Hi, it's nice to see a swift reply! Take any transparent image and test it. I now tested the script with this site's logo http://www.binpress.com/images/header/logo.png The output is an image with a gray background. It's not a problem for me though, I edited the script and added the missing functions to keep the transparency. Thanks for the script!