WideImage on cloud

1-click AWS Deployment    1-click Azure Deployment

Overview

WideImage is an object-oriented library for image manipulation, written in/for PHP 5. It’s a pure-PHP library and doesn’t require any external libraries apart from the GD2 extension. Most of the code is unit tested with Simpletest, and also being actively used on a few projects with no serious problems reported since first public release (alpha 1, March 2007). It’s released under GNU LGPL 2.1, which effectively means you’re allowed to use it in a commercial project for free.

The library focuses on often-used image operations and ease of use. It provides a simple and unified way to loading and saving images from/to files, strings, database and even URLs (load only, must be enabled in PHP). Supports the most common image formats, with more formats on its way.

Features

Major Features of WideImage

  • Supported Formats: WideImage supports all formats that are natively supported by the GD extension on the server (this currently includes GIF, PNG, JPG, GD, GD2, WBMP, XBM, XPM). It also supports BMP (read/write) and TGA (read only).
  • Loading images: Loading an image is easy — you only have to call the WideImage::load() static method and specify the image source. WideImage tries to detect whether the source is a file, url, upload, a binary string or a valid GD image resource (image handle). WideImage supports the most common image formats.
  • Saving images: WideImage supports saving images to files, outputting the image directly to the browser, and retrieving them as a string. With string output, you can easily capture image data and write it for example to a database.
  • Manipulating images : In WideImage, you manipulate the images by calling the appropriate operation method on the image object. Every operation returns a new Image object (for the nerds: this is basically a value object).
  • Smart coordinates: Smart coordinates were implemented to make operations that involve coordinates, dimensions, and positioning easier. They can be useful with any operation that requires coordinates as parameters, like resize, crop, etc.
  • Resource handling: WideImage takes care of image resources for you; you don’t have to destroy the images explicitly, they’re automatically destroyed when an image object is no longer used. You can change that at runtime by releasing the handle of an image via releaseHandle() method.

Videos

Installing Wideimage with Softaculous in cPanel

WideImage on cloud

Related Posts