PHP Classes
elePHPant
Icontem

PHP Image Handling API: Provide an API to do image manipulation operations

Recommend this page to a friend!
  Info   View files Example   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-03-25 (4 days ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
imagehandler 1.0GNU Lesser Genera...5PHP 5, Graphics, Web services
Description Author

This package can provide an API to do image manipulation operations.

The main class can preform many types of operations to manipulate images on image files in all formats supported by the PHP GD extension like PNG, JPEG, GIF, etc..

It can perform image manipulation operations like crop region, resize, adapt size and convert.

The package comes with scripts that can be used to make the package as a Web based API to be called from other servers, as well a Web interface for users to control the manipulation operations they want to images they upload.

  Performance   Level  
Name: Kjell-Inge Gustafsson <contact>
Classes: 9 packages by
Country: Sweden Sweden
Innovation award
Innovation award
Nominee: 4x

 

Details

IMAGEHANDLER

imageHandler is a PHP (gd) back end class package managing

  • crop region, resize, adapt size and convert
  • of bmp, jpg, gif, png, xbmp and xbm image types with preserved proportions and (for gif/png) transparency.

ImageHandler offers also availability 'on-the-fly'

  • using a web (REST GET/PUT, json) service interface.

Anonymous (source and/or output) filenames (without extension) and remote image resources are supported.

The imageHandler interface is simple :

  • the source image filename or url
  • the crop, (re-)size and/or adapt directives in pixels or percent of the source image size.

If the crop and size arguments are set simultaneously, cropping is done before (re-)sizing.

The imageHandler output mode is

* download, will open a 'save file'-box in browser * stream, (default) usable in a 'src' statement in a HTML page, (showing a 'thumbnail') * save, saves (cropped/resized/adapted) image on disk

Output image type for the managed image is (default) png. Non-resizable images types are returned 'as is'.

The class package includes

  • the PHP imageHandler class, doing the hard work,
  • the PHP interface script, offering service availability,
  • a PHP 'index.php' page, usable for testing, evaluating and/or image reviewing, including a (separate) editable image crop/resize test schema.

The imageHandler class and index page supports PEAR log class or equivalents.

imageHandler is free for personal, evaluating and testing use, for commercial licences, visit kigkonsult.se!

  Files folder image Files  
File Role Description
Files folder imagedocs (2 files)
Files folder imagetest (4 files)
Plain text file imageHandler.class.php Class Class source
Accessible without login Plain text file imageHandler.php Example Image handler script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  docs  
File Role Description
  Accessible without login Plain text file licence_CC-BY-NC-ND-4.0.txt Doc. Documentation
  Accessible without login Plain text file README.txt Doc. Documentation

  Files folder image Files  /  test  
File Role Description
  Accessible without login Plain text file cropAndResizeTest.php Aux. Auxiliary script
  Accessible without login Plain text file imageHandler.css Data Auxiliary data
  Accessible without login Plain text file imageHandler.js Data Auxiliary data
  Accessible without login Plain text file index.php Example Example script

 Version Control Unique User Downloads  
 100%
Total:0
This week:0