PHP Classes

Jaguar: Draw graphics and manipulate images

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (243)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-15 (Yesterday) RSS 2.0 feedStarStarStar 53%Total: 250 All time: 7,922 This week: 80Up
Version License PHP version Categories
jaguar 1.3.14MIT/X Consortium ...5.3PHP 5, Graphics
Description 

Author

This package can be used to draw graphics and manipulate images.

It can perform several types of manipulation of images in the formats JPEG, PNG, GIF and GD2, like posterize, grey scale, overlay, edge detection, blur, antique, bevel, etc..

It can also perform several types of graphic drawing operations on images like drawing text, borders, pixels, gradients, and polygons using brushes of many styles.

Picture of Hyyan Abo Fakher
Name: Hyyan Abo Fakher <contact>
Classes: 1 package by
Country: Germany Germany

Details

# Jaguar [![Build Status](https://travis-ci.org/hyyan/jaguar.png?branch=master)](https://travis-ci.org/hyyan/jaguar) [![Latest Stable Version](https://poser.pugx.org/hyyan/jaguar/v/stable.png)](https://packagist.org/packages/hyyan/jaguar) PHP 5.3 Graphic Library For Super Fast Image Manipulation And Drawing Using The Gd Library ## Requirements The Jaguar library has the following requirements: - PHP 5.3+ - Gd2 Bundled Version (2.0.28 or later) with freetype support ## Features - Supports for famous formats (JPEG,PNG,GIF,GD2) and new formats can be added easily [see example](http://jaguar.readthedocs.org/en/latest/usage/Canvas.html#adding-new-foramts) - Full Drawing API for drawing all kind of shapes from pixels to polygons * Brushes(Styles) supports for drawing complex and creative shapes (Brush,DashlineStyle,FillStyle,ThicklineStyle,...) * Advanced Texts drawers (Shadow,Outlined,...) * Advanced Borders drawers (in,out,fit,...) - Gradients Generator (Radial,Linear,Rectangle,Diamnond,...) - Actions (filters) framework with about 100 non pixel based actions which are superfast (no for loop) including advanced filters like: * Posterize * BlackAndWhite * Overlay * More than (30) Edge Detection filter including (Soble,Prewitt,Emboss,Gradient,laplacian,...) * PartialBlur * Antique * Multiply * Bevel * Screen * Wavy * ....... (And list goes on) .... ## Installation Installation via composer ```json { "require-dev": { "hyyan/jaguar": "1.*" } } ``` ## Sample Usage ```php use Jaguar\Canvas, Jaguar\Transformation, Jaguar\Dimension, Jaguar\Action\Posterize; $transformation = new Transformation(new Canvas('/path/to/image')); $transformation->resize(new Dimension(300,300)) ->apply(new Posterize(40)) ->watermark(new Canvas('/path/to/watermark')) ->getCanvas() ->save('/save/somewhere') ->show(); // send the result to the browser ``` ## Documentation - [Hosted by Read The Docs](http://jaguar.readthedocs.org/) ## License Jaguar is open-sourced package licensed under the MIT License. ## Contributions ## Your contributions are more than welcome ! Start by forking Jaguar repository, write your feature, fix bugs, and send a pull request. If you modify Jaguar API, please update the API documentation in the [Jaguar Docs repository](http://www.github.com/hyyan/jaguar-docs)

Screenshots  
  • colorslice.jpg
  • antique.jpg
  • bevel.jpg
  • BlackAndWhite.jpg
  • boost.jpg
  • monopin.jpg
  • OutlinedText.jpg
  • posterize.jpg
  • PrewittNegate.jpg
  • selection.jpg
  • sketchy.jpg
  • watermark.jpg
Videos  
  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Files folder imagetests (1 file, 1 directory)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageJaguar (13 files, 8 directories)

  Files folder image Files  /  src  /  Jaguar  
File Role Description
Files folder imageAction (24 files, 4 directories)
Files folder imageColor (8 files)
Files folder imageDrawable (12 files, 3 directories)
Files folder imageException (9 files)
Files folder imageFactory (4 files)
Files folder imageFormat (4 files)
Files folder imageGradient (6 files)
Files folder imageResources (2 directories)
  Plain text file AbstractCanvas.php Class Class source
  Plain text file Box.php Class Class source
  Plain text file Canvas.php Class Class source
  Plain text file CanvasFactory.php Class Class source
  Plain text file CanvasInterface.php Class Class source
  Plain text file CompressableCanvas.php Class Class source
  Plain text file Coordinate.php Class Class source
  Plain text file Dimension.php Class Class source
  Plain text file EqualsInterface.php Class Class source
  Plain text file Font.php Class Class source
  Plain text file ImageFile.php Class Class source
  Plain text file Transformation.php Class Class source
  Plain text file Util.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Action  
File Role Description
Files folder imageBlur (4 files)
Files folder imageColor (11 files)
Files folder imagePixelate (3 files)
Files folder imagePreset (7 files)
  Plain text file AbstractAction.php Class Class source
  Plain text file ActionInterface.php Class Class source
  Plain text file Bevel.php Class Class source
  Plain text file BoxAction.php Class Class source
  Plain text file ColorSlice.php Class Class source
  Plain text file Convolution.php Class Class source
  Plain text file Crop.php Class Class source
  Plain text file EdgeDetection.php Class Class source
  Plain text file Flip.php Class Class source
  Plain text file GraySketchy.php Class Class source
  Plain text file Hipass.php Class Class source
  Plain text file Light.php Class Class source
  Plain text file Mirror.php Class Class source
  Plain text file Overlay.php Class Class source
  Plain text file Posterize.php Class Class source
  Plain text file Resize.php Class Class source
  Plain text file Rotate.php Class Class source
  Plain text file Screen.php Class Class source
  Plain text file Sharpen.php Class Class source
  Plain text file Sketchy.php Class Class source
  Plain text file Smooth.php Class Class source
  Plain text file Unsharpen.php Class Class source
  Plain text file Watermark.php Class Class source
  Plain text file Wavy.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Action  /  Blur  
File Role Description
  Plain text file BoxBlur.php Class Class source
  Plain text file GaussianBlur.php Class Class source
  Plain text file PartialBlur.php Class Class source
  Plain text file SelectiveBlur.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Action  /  Color  
File Role Description
  Plain text file Antique.php Class Class source
  Plain text file BlackAndWhite.php Class Class source
  Plain text file Boost.php Class Class source
  Plain text file Brightness.php Class Class source
  Plain text file Colorize.php Class Class source
  Plain text file Contrast.php Class Class source
  Plain text file Gamma.php Class Class source
  Plain text file Grayscale.php Class Class source
  Plain text file Multiply.php Class Class source
  Plain text file Negate.php Class Class source
  Plain text file Sepia.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Action  /  Pixelate  
File Role Description
  Plain text file AbstractPixelate.php Class Class source
  Plain text file Average.php Class Class source
  Plain text file Mosaic.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Action  /  Preset  
File Role Description
  Plain text file AbstractPreset.php Class Class source
  Plain text file Canvas.php Class Class source
  Plain text file Chrome.php Class Class source
  Plain text file Dreamy.php Class Class source
  Plain text file Monopin.php Class Class source
  Plain text file Velvet.php Class Class source
  Plain text file Vintage.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Color  
File Role Description
  Plain text file AbstractColor.php Class Class source
  Plain text file BrushedColor.php Class Class source
  Plain text file ColorInterface.php Class Class source
  Plain text file RGBColor.php Class Class source
  Plain text file StyledBrushedColor.php Class Class source
  Plain text file StyledColor.php Class Class source
  Plain text file TiledColor.php Class Class source
  Plain text file TransparentColor.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Drawable  
File Role Description
Files folder imageBorder (4 files)
Files folder imageStyle (4 files)
Files folder imageText (4 files)
  Plain text file AbstractDrawable.php Class Class source
  Plain text file AbstractStyledDrawable.php Class Class source
  Plain text file Arc.php Class Class source
  Plain text file Border.php Class Class source
  Plain text file DrawableInterface.php Class Class source
  Plain text file FilledDrawable.php Class Class source
  Plain text file Line.php Class Class source
  Plain text file Pixel.php Class Class source
  Plain text file Polygon.php Class Class source
  Plain text file Rectangle.php Class Class source
  Plain text file StyleInterface.php Class Class source
  Plain text file Text.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Drawable  /  Border  
File Role Description
  Plain text file BorderDrawerInterface.php Class Class source
  Plain text file BorderFit.php Class Class source
  Plain text file BorderIn.php Class Class source
  Plain text file BorderOut.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Drawable  /  Style  
File Role Description
  Plain text file Brush.php Class Class source
  Plain text file DashedlineStyle.php Class Class source
  Plain text file FillStyle.php Class Class source
  Plain text file ThicklineStyle.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Drawable  /  Text  
File Role Description
  Plain text file Outline.php Class Class source
  Plain text file Plain.php Class Class source
  Plain text file Shadow.php Class Class source
  Plain text file TextDrawerInterface.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Exception  
File Role Description
  Plain text file CanvasCreationException.php Class Class source
  Plain text file CanvasDestroyingException.php Class Class source
  Plain text file CanvasEmptyException.php Class Class source
  Plain text file CanvasException.php Class Class source
  Plain text file CanvasOutputException.php Class Class source
  Plain text file DrawableException.php Class Class source
  Plain text file InvalidCoordinateException.php Class Class source
  Plain text file InvalidDimensionException.php Class Class source
  Plain text file JaguarException.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Factory  
File Role Description
  Plain text file GdFactory.php Class Class source
  Plain text file GifFactory.php Class Class source
  Plain text file JpegFactory.php Class Class source
  Plain text file PngFactory.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Format  
File Role Description
  Plain text file Gd.php Class Class source
  Plain text file Gif.php Class Class source
  Plain text file Jpeg.php Class Class source
  Plain text file Png.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Gradient  
File Role Description
  Plain text file AbstractGradient.php Class Class source
  Plain text file CircleGradient.php Class Class source
  Plain text file DiamondGradient.php Class Class source
  Plain text file GradientInterface.php Class Class source
  Plain text file LinearGradient.php Class Class source
  Plain text file RectangleGradient.php Class Class source

  Files folder image Files  /  src  /  Jaguar  /  Resources  
File Role Description
Files folder imageFonts (1 file)
Files folder imagePreset (5 files)

  Files folder image Files  /  src  /  Jaguar  /  Resources  /  Fonts  
File Role Description
  Accessible without login Plain text file arial.ttf Data Auxiliary data

  Files folder image Files  /  src  /  Jaguar  /  Resources  /  Preset  
File Role Description
  Accessible without login Plain text file beam.gd2 Data Auxiliary data
  Accessible without login Plain text file canvas.gd2 Data Auxiliary data
  Accessible without login Plain text file noise.gd2 Data Auxiliary data
  Accessible without login Plain text file scratch.gd2 Data Auxiliary data
  Accessible without login Plain text file vignette.gd2 Data Auxiliary data

  Files folder image Files  /  tests  
File Role Description
Files folder imageJaguar (2 directories)
  Accessible without login Plain text file bootstrap.php Aux. Class source

  Files folder image Files  /  tests  /  Jaguar  
File Role Description
Files folder imageFixtures (5 files, 3 directories)
Files folder imageTests (9 files, 6 directories)

  Files folder image Files  /  tests  /  Jaguar  /  Fixtures  
File Role Description
Files folder imagefonts (2 files)
Files folder imageinvalid (4 files)
Files folder imagepallete (4 files)
  Accessible without login Plain text file gd.gd2 Data Auxiliary data
  Accessible without login Image file google.png Icon Icon image
  Accessible without login Image file icon.ico Data Auxiliary data
  Accessible without login Image file linux.gif Icon Icon image
  Accessible without login Image file sky.jpg Icon Icon image

  Files folder image Files  /  tests  /  Jaguar  /  Fixtures  /  fonts  
File Role Description
  Accessible without login Plain text file arial.ttf Data Auxiliary data
  Accessible without login Plain text file arialbi.ttf Data Auxiliary data

  Files folder image Files  /  tests  /  Jaguar  /  Fixtures  /  invalid  
File Role Description
  Accessible without login Plain text file invalid-gd.gd2 Data Auxiliary data
  Accessible without login Image file invalid-google.png Icon Icon image
  Accessible without login Image file invalid-linux.gif Icon Icon image
  Accessible without login Image file invalid-sky.jpg Icon Icon image

  Files folder image Files  /  tests  /  Jaguar  /  Fixtures  /  pallete  
File Role Description
  Accessible without login Plain text file pallete.gd2 Data Auxiliary data
  Accessible without login Image file pallete.gif Icon Icon image
  Accessible without login Image file pallete.jpeg Icon Icon image
  Accessible without login Image file pallete.png Icon Icon image

  Files folder image Files  /  tests  /  Jaguar  /  Tests  
File Role Description
Files folder imageAction (23 files, 4 directories)
Files folder imageColor (7 files)
Files folder imageDrawable (11 files, 3 directories)
Files folder imageFormat (4 files)
Files folder imageGradient (5 files)
Files folder imageMock (3 files)
  Accessible without login Plain text file AbstractCanvasTest.php Test Class source
  Accessible without login Plain text file BoxTest.php Test Class source
  Accessible without login Plain text file CanvasTest.php Test Class source
  Accessible without login Plain text file CompressableCanvasTest.php Test Class source
  Accessible without login Plain text file CoordinateTest.php Test Class source
  Accessible without login Plain text file DimensionTest.php Test Class source
  Accessible without login Plain text file FontTest.php Test Class source
  Accessible without login Plain text file ImageFileTest.php Test Class source
  Accessible without login Plain text file JaguarTestCase.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Action  
File Role Description
Files folder imageBlur (4 files)
Files folder imageColor (11 files)
Files folder imagePixelate (3 files)
Files folder imagePreset (6 files)
  Accessible without login Plain text file AbstractActionTest.php Test Class source
  Accessible without login Plain text file BevelTest.php Test Class source
  Accessible without login Plain text file BoxActionTest.php Test Class source
  Accessible without login Plain text file ColorSliceTest.php Test Class source
  Accessible without login Plain text file ConvolutionTest.php Test Class source
  Accessible without login Plain text file CropTest.php Test Class source
  Accessible without login Plain text file EdgeDetectionTest.php Test Class source
  Accessible without login Plain text file FlipTest.php Test Class source
  Plain text file GraySketchyTest.php Class Class source
  Accessible without login Plain text file HipassTest.php Test Class source
  Accessible without login Plain text file LightTest.php Test Class source
  Accessible without login Plain text file MirrorTest.php Test Class source
  Accessible without login Plain text file OverlayTest.php Test Class source
  Accessible without login Plain text file PosterizeTest.php Test Class source
  Accessible without login Plain text file ResizeTest.php Test Class source
  Accessible without login Plain text file RotateTest.php Test Class source
  Accessible without login Plain text file ScreenTest.php Test Class source
  Accessible without login Plain text file SharpenTest.php Test Class source
  Accessible without login Plain text file SketchyTest.php Test Class source
  Accessible without login Plain text file SmoothTest.php Test Class source
  Accessible without login Plain text file UnsharpenTest.php Test Class source
  Accessible without login Plain text file WatermarkTest.php Test Class source
  Accessible without login Plain text file WavyTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Action  /  Blur  
File Role Description
  Accessible without login Plain text file BoxBlurTest.php Test Class source
  Accessible without login Plain text file GaussianBlurTest.php Test Class source
  Accessible without login Plain text file PartialBlurTest.php Test Class source
  Accessible without login Plain text file SelectiveBlurTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Action  /  Color  
File Role Description
  Accessible without login Plain text file AntiqueTest.php Test Class source
  Accessible without login Plain text file BlackAndWhiteTest.php Test Class source
  Accessible without login Plain text file BoostTest.php Test Class source
  Accessible without login Plain text file BrightnessTest.php Test Class source
  Accessible without login Plain text file ColorizeTest.php Test Class source
  Accessible without login Plain text file ContrastTest.php Test Class source
  Accessible without login Plain text file GammaTest.php Test Class source
  Accessible without login Plain text file GrayscaleTest.php Test Class source
  Accessible without login Plain text file MulitplyTest.php Test Class source
  Accessible without login Plain text file NegateTest.php Test Class source
  Accessible without login Plain text file SepiaTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Action  /  Pixelate  
File Role Description
  Accessible without login Plain text file AbstractPixelateTest.php Test Class source
  Accessible without login Plain text file AverageTest.php Test Class source
  Accessible without login Plain text file MosaicTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Action  /  Preset  
File Role Description
  Accessible without login Plain text file CanvasTest.php Test Class source
  Accessible without login Plain text file ChromeTest.php Test Class source
  Accessible without login Plain text file DreamyTest.php Test Class source
  Accessible without login Plain text file MonopinTest.php Test Class source
  Accessible without login Plain text file VelvetTest.php Test Class source
  Accessible without login Plain text file VintageTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Color  
File Role Description
  Accessible without login Plain text file AbstractColorTest.php Test Class source
  Accessible without login Plain text file BrushedColorTest.php Test Class source
  Accessible without login Plain text file RGBColorTest.php Test Class source
  Accessible without login Plain text file StyledBrushedColorTest.php Test Class source
  Accessible without login Plain text file StyledColorTest.php Test Class source
  Accessible without login Plain text file TiledColorTest.php Test Class source
  Accessible without login Plain text file TransparentColorTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Drawable  
File Role Description
Files folder imageBorder (4 files)
Files folder imageStyle (4 files)
Files folder imageText (4 files)
  Accessible without login Plain text file AbstractDrawableTest.php Test Class source
  Accessible without login Plain text file AbstractStyledDrawableTest.php Test Class source
  Accessible without login Plain text file AbstractStyleTest.php Test Class source
  Accessible without login Plain text file ArcTest.php Test Class source
  Accessible without login Plain text file BorderTest.php Test Class source
  Accessible without login Plain text file FilledDrawableTest.php Test Class source
  Accessible without login Plain text file LineTest.php Test Class source
  Accessible without login Plain text file PixelTest.php Test Class source
  Accessible without login Plain text file PolygonTest.php Test Class source
  Accessible without login Plain text file RectangleTest.php Test Class source
  Accessible without login Plain text file TextTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Drawable  /  Border  
File Role Description
  Accessible without login Plain text file AbstractBorderDrawerTest.php Test Class source
  Accessible without login Plain text file BorderFitTest.php Test Class source
  Accessible without login Plain text file BorderInTest.php Test Class source
  Accessible without login Plain text file BorderOutTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Drawable  /  Style  
File Role Description
  Accessible without login Plain text file BrushTest.php Test Class source
  Accessible without login Plain text file DashedlineStyleTest.php Test Class source
  Accessible without login Plain text file FillStyleTest.php Test Class source
  Accessible without login Plain text file ThicklineStyleTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Drawable  /  Text  
File Role Description
  Accessible without login Plain text file AbstractTextDrawerTest.php Test Class source
  Accessible without login Plain text file OutlineTest.php Test Class source
  Accessible without login Plain text file PlainTest.php Test Class source
  Accessible without login Plain text file ShadowTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Format  
File Role Description
  Accessible without login Plain text file GdTest.php Test Class source
  Accessible without login Plain text file GifTest.php Test Class source
  Accessible without login Plain text file JpegTest.php Test Class source
  Accessible without login Plain text file PngTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Gradient  
File Role Description
  Accessible without login Plain text file AbstractGradientTest.php Test Class source
  Accessible without login Plain text file CircleGradientTest.php Test Class source
  Accessible without login Plain text file DiamondGradientTest.php Test Class source
  Accessible without login Plain text file LinearGradientTest.php Test Class source
  Accessible without login Plain text file RectangleGradientTest.php Test Class source

  Files folder image Files  /  tests  /  Jaguar  /  Tests  /  Mock  
File Role Description
  Accessible without login Plain text file CanvasMock.php Test Class source
  Accessible without login Plain text file EmptyCanvasMock.php Test Class source
  Accessible without login Plain text file PngCanvasMock.php Test Class source

 Version Control Unique User Downloads Download Rankings  
 95%
Total:250
This week:0
All time:7,922
This week:80Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:-
Tests:58%StarStarStar
Videos:-
Overall:53%StarStarStar
Rank:2222