PHP Classes
elePHPant
Icontem

GD2 Imaging: Deskew and apply other advanced image effects

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (30)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-06-21 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,368 This week: 3All time: 2,666 This week: 493Up
Version License PHP version Categories  
gd2-imaging 1.7.4GNU Lesser Genera...5.2PHP 5, Graphics
Description Author  

This class can apply several types of advanced image processing effects. Currently it can:

* Use the Hough transform to detect skew angles and deskew an image
* Detect the background color of an image
* Perform image quantization basic text recognition (OCR) in an image to eventually read text used for CAPTCHA validation
* Apply the pastel effect on an image
* Crop an image preserving the image aspect
* Remove a noise from an image
* Rotate or rescale an image detecting its background color
* Generate an histograms for an image
* Calculate pixel luminance (intensity), hue, saturation and chromacity of the RGB colors in three different color modes (HSL, HSI, HSV)
* Change hue of the image
* Change luminance of the image
* Change saturation of the image
* Create High-Definition-Range (HDR) images
* Use advanced programmable Pixel Shader
* Merge two images using eight different blending modes:
- addition
- divide
- subtract
- darken
- lighten
- difference
- multiply
- opacity
* Apply experimental blur effect with customizable kernel size.

Innovation Award  
PHP Programming Innovation award nominee
November 2011
Number 2


Prize: One downloadable copy of PhpED Professional
PHP can use the GD library to provide basic image manipulation functions.

This class goes further and implements additional advanced image manipulation functions in pure PHP.

Manuel Lemos
Picture of Artur Graniszewski
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Classes: 13 packages by
Country: Poland Poland
Age: 33
All time rank: 3215 in Poland Poland
Week rank: 78 Up1 in Poland Poland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

Screenshots  
  • noise_reduction.png
  • ocr_text_recognition.png
  • auto_deskewing.png
  • ocr_captcha_reader.PNG
  • pastelization.png
  • skew_detection.png
  • histogram.png
  • background_color.png
  • hue_rotation.jpg
  • vibrant_colors.jpg
  Files folder image Files  
File Role Description
Files folder imagedocumentation (9 files)
Files folder imageexamples (19 files)
Plain text file gd2imaging.php Class Main class source.
Accessible without login Plain text file license.txt Lic. LGPL license file.

  Files folder image Files  /  documentation  
File Role Description
  Accessible without login HTML file _gd2imaging.php.html Doc. Documentation [MAIN FILE]
  Accessible without login HTML file Image.html Doc. Documentation: Image class
  Accessible without login HTML file Vector.html Doc. Documentation: Vector class
  Accessible without login HTML file Quantizator.html Doc. Documentation: Quantizator class
  Accessible without login HTML file Color.html Doc. Documentation: Color class
  Accessible without login HTML file Dimensions.html Doc. Documentation: Dimensions class
  Accessible without login HTML file Point.html Doc. Documentation: Point class
  Accessible without login HTML file Channel.html Doc. Documentation: Channel class
  Accessible without login Plain text file stylesheet.css Data Stylesheet

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file deskew.php Example Misc file.
  Accessible without login Plain text file histogram.php Example Misc file.
  Accessible without login Plain text file hsv.php Example Misc file.
  Accessible without login Plain text file hue.php Example Misc file.
  Accessible without login Plain text file noise_reduction.php Example Misc file.
  Accessible without login Plain text file rotation.php Example Misc file.
  Accessible without login Image file alphabet.png Data Misc file.
  Accessible without login Image file bird.png Photo Misc file.
  Accessible without login Image file blue.png Photo Misc file.
  Accessible without login Image file captcha.gif Photo Misc file.
  Accessible without login Image file hawaii.jpg Photo Misc file.
  Accessible without login Image file noise.PNG Photo Misc file.
  Accessible without login Image file plain.jpg Photo Misc file.
  Accessible without login Image file test3.PNG Photo Misc file.
  Accessible without login Image file test4.PNG Photo Misc file.
  Accessible without login Image file text.png Data Misc file.
  Accessible without login Image file arrow.png Data Misc file.
  Accessible without login Image file loading.gif Data Misc file.

 Version Control Reuses Unique User Downloads Download Rankings  
 0%1Total:1,368All time:2,666
 This week:3This week:493Up