├── .gitignore ├── EasyImage.php ├── README.md ├── docs └── index.html └── examples ├── .DS_Store ├── ._.DS_Store ├── EasyImageLogo ├── index.php └── resources │ └── outrider.ttf ├── HTMLExample ├── index.php └── resources │ ├── AllerDisplay.ttf │ ├── CaviarDreams.ttf │ ├── background.jpg │ └── outrider.ttf ├── basicExample ├── index.php └── resources │ └── cat.jpeg ├── concatExample ├── index.php └── resources │ ├── ._kitty1.gif │ ├── ._kitty2.png │ ├── kitty1.gif │ └── kitty2.png ├── giftest ├── index.php └── resources │ └── test.gif ├── gradientExample └── index.php ├── gradientExample1 └── index.php ├── gradientExample2 ├── index.php └── resources │ └── face.png ├── infoExampe ├── index.php └── resources │ ├── ._apple.jpg │ └── apple.jpg ├── perspectiveExample ├── index.php └── resources │ ├── grid.gif │ └── grid.jpg ├── psdExample ├── index.php └── resources │ └── angelwings.psd ├── simpleTextExample ├── index.php └── resources │ └── OldStreetSigns.ttf └── textAlignExample ├── index.php └── resources └── OldStreetSigns.ttf /.gitignore: -------------------------------------------------------------------------------- 1 | /nbproject/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |  2 | 3 | **By:** Robert Parham | 4 | **License:** wtfpl.net WTFPL | 5 | **Version:** 2.8 6 | 7 | [EasyImage](http://pamblam.github.io/EasyImage/) is an easy to use image manipulation library written entirely in PHP and implemented in a single PHP class. 8 | 9 | **This library is written for a tool that is hosted on a legacy system. Ideally, you should use a tool that implements ImageMagick.** 10 | 11 | ## It's Easy! 12 | The focus is on ease of use. 13 | * You need only include a single class file. 14 | * You **don't** need ImageMagick. *This means EasyImage is going to be slightly slower than an ImageMagick solution, but will be more portable.* 15 | * No clean up! Temporary resources are destroyed automagically. 16 | * Uses a single constructor for all image types, `EasyImage::Create($file)`, so you don't have to remember a bunch of different function names. 17 | * All editing methods are chainable, so you can achieve most image editing functionality in a single line. `$img = EasyImage::Create($file)->scale(100)->borderRadius();`. 18 | * Output is a breeze too. To send the image to the browser simply echo the class instance, EasyImage will take care of headers and everything. `echo EasyImage::Create($file)->greyScale();`. There are also options to save the image locally or force it as a download. 19 | * Works on ancient versions of PHP. 20 | 21 | ## It can do anything! 22 | (Almost...) 23 | * Reads and writes Animated gifs. 24 | * Reads Photoshop project files (PSD). 25 | * Writes to PDF format. 26 | * Resize, skew, layer, distort, replace colors, add watermarks, create text, create gradients, and a ton more. 27 | * Get information about the image such as size, mime type, a list of colors in the image, et cetera. 28 | * ~~Call and wish you a happy birthday.~~ *Feature still in beta.* 29 | 30 | Be sure to check out the docs [here](http://pamblam.github.io/EasyImage/) to see the complete list of features and functionality. -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |Download from GitHub.
80 | 81 |Easy image is an easy to use image manipulation library written entirely in PHP and implemented in a single PHP class. It's intended to be used where ImageMagick is not available, and works on PHP 5.3 and up. It can be used to edit, apply filters, resize, animate, convert and get information about images in several formats.
85 |
89 | 90 | Input types: 91 |
|
101 |
102 | 103 | as 104 |
|
113 |
114 | 115 | Output types: 116 |
|
126 |
127 | 128 | as 129 |
|
138 |
143 | 144 | Edit & Adjust Image: 145 |
156 | 157 | |
158 |
159 | 160 |
171 | 172 | |
173 |
174 | 175 |
186 | 187 | |
188 |
189 | 190 |
201 | 202 | |
203 |
208 | 209 | Get Image Info: 210 |
216 | 217 | |
218 |
219 | 220 |
|
228 |
229 | 230 |
|
238 |
239 | 240 |
|
248 |
253 | 254 | Utilities & Helpers: 255 |
|
261 |
262 | 263 |
|
270 |
271 | 272 |
|
278 |
279 | 280 |
|
286 |
EasyImage was meant to be easy to use. To that end, most of it's methods are chainable, and the image can be sent to the browser by simply echoing the class. This allows you to generate and alter images in a single statement.
293 | 294 |EasyImage has a universal constructor: EasyImage::Create(). This method is used to create your EasyImage object no matter what the input type.
297 | 298 |$path = realpath(dirname(__FILE__));318 |
echo EasyImage::Create("$path/image.png");
echo EasyImage::Create("www.example.com/images/logo.jpg");334 |
echo EasyImage::Create(50, 50);352 |
echo EasyImage::Create("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACg0lEQVR4nO3XTWhUVxQH8F+ipopgCVqTuFFLtQstwS+IChpXrbrr2iJ+rQviwi666aIFQRAFN7pzIyIBUXChKFW0UMGFdqWgLTRG0eBHaltjYro49zmTl3mZNxOhC/3DcGfOvef7vf+5wwe872hpUm8eVqITH+MJBnADL99NaBMxDTtwDaMYq/H5F+fxVVmjZSvQg+NYhmFcwSX045moyCJ8iTXJ7iXsxB9lgynCNyKzYRzBJ3XOL8VpUZFHWDcV59uSoYdNGNqGf/A3VjfjvEdk/hCLmzGAXlG5fnQ1otiKW0l5bZPOM+wRVTzRiNL2pHR4is4zXMUbdJdV+FlkP79KNhv7RW+L0Ia9IuvqN2yTSOhQGefteI2LOfmPKu/7hgLdvVVnvq6St+Ix7uYVWmsY6cZ0XM7Jh9I6hr8KAhgq+P5GVPUzwZxvMb2GkY609ufkB3AfD3CzIIDjGEwBXsjtZfY68HyyAOak9UVOPoqTBY4zjKGvYC9zOq4CtVowmNa5dZw1ioxBn9QLYCCtzZJPERapsOqk+Ej0sFafl2BhHf0VJlZvlqDkX+s5z9Anol2ek98Q43hmgV6XqOCxnDybKd+XDWBjUjibk68U8+EX4wdMC7aK0dtvfAXacE9UtbNsAHAuBbE7J+/FU5V+3q76fQef5s4fTXs/NOIcFohshrE5t9cuaPmMqMYp7BLZVmNfcn5dPFsNY5VgtBF8q/wNqk0l83sq5NYUvhAMOCYewi2YUXB2tpikv6fz14wfaBNQNqN5+ElcSqcJlryKPwXDZXfC9Sqv8cGk86qkj1L4PBn9zcQb8ajo9XcaKHmz/wsILugQ3D4oLqAjU7D3Af8P/gN1UJotAMKqGQAAAABJRU5ErkJggg==");368 |
echo EasyImage::Create(404 |
"Hello, World",
13,
"#FF0000",
"fancyFont.ttf"
);
Note: EasyImage only supports very basic html, along with sudo CSS style. Here are the allowed tags and styles.
422 |$fonts = array("courier"=>"courier.ttf", "impact"=>"impact.ttf");441 |
$HTML = "<span style='font-size:15;'>Hello, </span><span style='font-face:impact'>world</span>";
echo EasyImage::Create($HTLM, fonts);
$sources = array("frame1.gif", "frame2.gif", "frame3.gif");463 |
echo EasyImage::Create($sources);
All the editing methods are chainable for convenience.
469 | 470 |echo EasyImage::Create($file)->borderRadius();484 |
echo EasyImage::Create($file)->527 |
addWatermark(
"uploaded to mysite.com",
18,
"#000",
"courier.ttf"
);
echo EasyImage::Create($file)->makeOpaque(56);543 |
echo EasyImage::Create($file)->addOverlay($overlay, 0, 0);563 |
echo EasyImage::Create($file)->blackAndWhite();576 |
echo EasyImage::Create($file)->crop(32, 32);595 |
echo EasyImage::Create($file)->autoCrop();612 |
echo EasyImage::Create($file)->transparentToColor($hexColor);628 |
echo EasyImage::Create($file)->removeColor($hexColor);644 |
echo EasyImage::Create($file)->replaceColor("#ff0000", "#00ffff");662 |
echo EasyImage::Create($file)->scale(150);689 |
echo EasyImage::Create($file)->resize(150, 200);706 |
echo EasyImage::Create($file)->rotate(180);722 |
echo EasyImage::Create($file)->rotate(500, 300);739 |
echo EasyImage::Create($file)->reverseColors();752 |
echo EasyImage::Create($file)->greyScale();765 |
echo EasyImage::Create($file)->adjustBrightness(150);781 |
echo EasyImage::Create($file)->adjustContrast(150);797 |
echo EasyImage::Create($file)->edgeDetect();810 |
echo EasyImage::Create($file)->emboss();823 |
echo EasyImage::Create($file)->gaussianBlur();836 |
echo EasyImage::Create($file)->selectiveBlur();849 |
echo EasyImage::Create($file)->sketch();862 |
echo EasyImage::Create($file)->vignette();875 |
echo EasyImage::Create($file)->alphaMap();888 |
echo EasyImage::Create($file)->removeTransparency();904 |
echo EasyImage::Create($file)->perspective();921 |
echo EasyImage::Create($file)->pixelate(10);938 |
echo EasyImage::Create($file)->adjustSmoothness(10);954 |
echo EasyImage::Create($file)->colorMask("#FF000");970 |
echo EasyImage::Create($file)->colorize("#FF0000");987 |
echo EasyImage::Create($file)->colorFill(0, 0, "#FF0000");1005 |
echo EasyImage::Create($file)->mergeImages("myImage.psd");1028 |
Image Flip Constants
1045 |echo EasyImage::Create($file)->flip();1054 |
Image Mime Type Constants
1071 |echo EasyImage::Create($file)->convertTo(EasyImage::PDF);1081 |
Image Mime Type Constants
1099 |echo EasyImage::Create($file)->concat($newImage);1107 |
The class exposes several methods that allow you to get information about the image.
1113 | 1114 |Returns: An array containing all unique colors in the image. If the EasyImage object is an animated GIF, will return an array of arrays for each layer.
1127 |$colors = EasyImage::Create($file)->getColors();1128 |
Returns: The GD image resource for the current EasyImage object. If it's an animated GIF, it will return an array containing the GD resource for each layer of the GIF.
1141 |$im = EasyImage::Create($file)->getImageResource();1142 |
Returns: A color that does not exist in the current image, or false if it's an animated GIF.
1158 |$color = EasyImage::Create($file)->getUniqueColor();1159 |
Returns: If the current image was autoCrop()'ed, it will return an array containing the offsets of the crop. If it's an animated GIF it will return an array for each layer/frame.
1172 |$offsets = EasyImage::Create($file)->getOffsets();1173 |
Returns: Returns the filepath for the original image used to create the current EasyImage object. This may or may not be a temporary file. If it's an animated GIF, will return an array with the filepath foe each layer.
1186 |$path = EasyImage::Create($file)->getFilepath();1187 |
Returns: The width of the current image.
1200 |$width = EasyImage::Create($file)->getWidth();1201 |
Returns: The height of the current image.
1214 |$height = EasyImage::Create($file)->getHeight();1215 |
Returns: The mime type of the current image.
1228 |$type = EasyImage::Create($file)->getMimeType();1229 |
Returns: Either the string "portrait" or "landscape".
1242 |$orientation = EasyImage::Create($file)->getOrientation();1243 |
Returns: The color index of a color at the given coordinates, or an array containing the color at that index of each frame of the GIF.
1260 |$color = EasyImage::Create($file)->getPixelColorIndex();1261 |
Returns: The pixel color for a given color index.
1277 |$color = EasyImage::Create($file)->getColorsFromIndex($index);1278 |
Returns: The GRBA color values of a given pixel.
1295 |$color = EasyImage::Create($file)->getPixelRGBA(0, 0);1296 |
Returns: The HEX color values of a given pixel.
1313 |$color = EasyImage::Create($file)->getPixelHexColor(0, 0);1314 |
Returns: An array of EasyImage objects for each layer of an animated GIF.
1327 |$Layers = EasyImage::Create($AnimatedGIF)->getGifSources();1328 |
Image Mime Type Constants
1345 |Returns: The base 64 data URL of the image.
1355 |$color = EasyImage::Create($file)->getBase64();1356 |
Image Mime Type Constants
1373 |$color = EasyImage::Create($file)->getString();1383 |
Returns: The image as a string.
1385 |$color = EasyImage::Create($file)->getCopy();1397 |
Returns: A copy of the current EasyImage object.
1399 |EasyImage provides some helper methods and utilities.
1404 | 1405 |Returns: true if the two colors are the same, false else.
1419 |$sameColor = EasyImage::compareColors("#FFF", array(255, 255, 255));1420 |
Returns: 1 if the first color has a greater luma value than the second, else -1.
1437 |$brighterColor = EasyImage::compareLuma("#FFF", "#FF0);1438 |
Returns: An array of colors, sorted by luma value.
1454 |$colors = EasyImage::colorSortLuma($colors);1455 |
Returns: True if the image is an animated GIF, else false.
1471 |echo EasyImage::isAnimatedGif($file) ?1472 |
"Hoorah, animation!" :
"Boo, no animation." ;
Returns: An array of colors, sorted by color dominance value.
1488 |$colors = EasyImage::colorSort($colors);1489 |
Returns: Get the distance between any two given colors.
1506 |$distance = EasyImage::getColorDistance($color1, $color2);1507 |
Returns: The hex color string for the given RGB color array.
1523 |$distance = EasyImage::RGBToHex($color);1524 |
Returns: The RGB color array for the given hex color string.
1540 |$distance = EasyImage::hexToRGB($color);1541 |
Returns: An array of colors in the gradient.
1558 |$colors = EasyImage::gradientColors($color1, $color2);1559 |
EasyImage provides several built-in methods for outputting the image.
1565 | 1566 |This is the most common type of output, and the easiest to use. To send the Image to the browser, simply echo or print it.
1573 |echo EasyImage::Create($file);1574 |
EasyImage::Create($image)->save("myImage.png");1590 |
EasyImage::Create($image)->download("yourImage.png");1606 |
"; echo $image->getBase64(); exit; 60 | echo $image; -------------------------------------------------------------------------------- /examples/EasyImageLogo/resources/outrider.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/EasyImageLogo/resources/outrider.ttf -------------------------------------------------------------------------------- /examples/HTMLExample/index.php: -------------------------------------------------------------------------------- 1 | andelements with style parameters, as well as
11 | * Only the following styles are supported 12 | * background-color - Must be hex, ie #FFF, #FF000 - transparent by default 13 | * background-image - a local path or a URL 14 | * font-face - the name of the font, as passed into the $fonts array 15 | * font-size - the font size in pixels 16 | * color - The color of the text, must be in hex 17 | * disply - "block" or "inline" 18 | * width - The width of the text 19 | * opacity - 0-127 20 | * padding - element padding 21 | * nesting tags not supported 22 | */ 23 | 24 | // BG Image must be a full path or a URL 25 | $here = realpath(dirname(__FILE__)); 26 | $BGImage = "$here/resources/background.jpg"; 27 | 28 | // Make some HTML 29 | $html = "This text is not styled."; 30 | $html .= "This text is Styled"; 31 | $html .= "Divs are block level elements"; 32 | $html .= "And here's some tiny text"; 33 | $html .= "This is a really lonfonasdf sodf"; 34 | 35 | // Array of fonts with the name as the key and the filepath as the value 36 | // Any text that doesn't have a specified font will use the first font in the array 37 | // Must use TTF fonts only 38 | $fonts = array( 39 | "AllerDisplay" => "$here/resources/AllerDisplay.ttf", 40 | "Outrider" => "$here/resources/outrider.ttf" 41 | ); 42 | 43 | // Create the image 44 | echo EasyImage::Create($html, $fonts) 45 | ->removeTransparency(); // give it a white background -------------------------------------------------------------------------------- /examples/HTMLExample/resources/AllerDisplay.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/HTMLExample/resources/AllerDisplay.ttf -------------------------------------------------------------------------------- /examples/HTMLExample/resources/CaviarDreams.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/HTMLExample/resources/CaviarDreams.ttf -------------------------------------------------------------------------------- /examples/HTMLExample/resources/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/HTMLExample/resources/background.jpg -------------------------------------------------------------------------------- /examples/HTMLExample/resources/outrider.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/HTMLExample/resources/outrider.ttf -------------------------------------------------------------------------------- /examples/basicExample/index.php: -------------------------------------------------------------------------------- 1 | autocrop() 17 | ->crop(317, 317) 18 | ->borderRadius(150, "#000000"); -------------------------------------------------------------------------------- /examples/basicExample/resources/cat.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/basicExample/resources/cat.jpeg -------------------------------------------------------------------------------- /examples/concatExample/index.php: -------------------------------------------------------------------------------- 1 | colorize($red); 19 | $blueKitty = EasyImage::Create($kitty2)->colorize($blue); 20 | $greenKitty = EasyImage::Create($kitty2)->colorize($green); 21 | $pinkKitty = EasyImage::Create($kitty2)->colorize($pink); 22 | 23 | // concat the red and blue kittys horizontally for the top row 24 | $top = $redKitty->concat($blueKitty); 25 | 26 | // concat the green and pink kittys horizontally for the bottom row 27 | $bottom = $greenKitty->concat($pinkKitty); 28 | 29 | // concat the top an bottom images vertically for the full image 30 | $full = $top->concat($bottom, EasyImage::VERT); 31 | 32 | // let's put the original on top 33 | $pos = $full->getWidth() / 4; 34 | echo $full->addOverlay($kitty2, $pos, $pos); -------------------------------------------------------------------------------- /examples/concatExample/resources/._kitty1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/concatExample/resources/._kitty1.gif -------------------------------------------------------------------------------- /examples/concatExample/resources/._kitty2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/concatExample/resources/._kitty2.png -------------------------------------------------------------------------------- /examples/concatExample/resources/kitty1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/concatExample/resources/kitty1.gif -------------------------------------------------------------------------------- /examples/concatExample/resources/kitty2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/concatExample/resources/kitty2.png -------------------------------------------------------------------------------- /examples/giftest/index.php: -------------------------------------------------------------------------------- 1 | greyScale(); -------------------------------------------------------------------------------- /examples/giftest/resources/test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/giftest/resources/test.gif -------------------------------------------------------------------------------- /examples/gradientExample/index.php: -------------------------------------------------------------------------------- 1 | "; 16 | foreach($gradientColors as $clr) echo "$clr"; -------------------------------------------------------------------------------- /examples/gradientExample1/index.php: -------------------------------------------------------------------------------- 1 | "; 12 | foreach($gradientColors as $clr) echo "$clr"; -------------------------------------------------------------------------------- /examples/gradientExample2/index.php: -------------------------------------------------------------------------------- 1 | removeColor("#FFFFFF"); 13 | echo EasyImage::Create($image->getWidth(), $image->getHeight(), array("#f0f0f0", "#7AA846")) 14 | ->addOverlay($image, 0, 0); -------------------------------------------------------------------------------- /examples/gradientExample2/resources/face.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/gradientExample2/resources/face.png -------------------------------------------------------------------------------- /examples/infoExampe/index.php: -------------------------------------------------------------------------------- 1 | getColors(true); 18 | ?> 19 | 20 |Info Example 21 | 22 |23 |
52 | 53 | -------------------------------------------------------------------------------- /examples/infoExampe/resources/._apple.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/infoExampe/resources/._apple.jpg -------------------------------------------------------------------------------- /examples/infoExampe/resources/apple.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/infoExampe/resources/apple.jpg -------------------------------------------------------------------------------- /examples/perspectiveExample/index.php: -------------------------------------------------------------------------------- 1 | perspective(0.22); 13 | $i->removeColor("#000000"); 14 | echo $i; -------------------------------------------------------------------------------- /examples/perspectiveExample/resources/grid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/perspectiveExample/resources/grid.gif -------------------------------------------------------------------------------- /examples/perspectiveExample/resources/grid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/perspectiveExample/resources/grid.jpg -------------------------------------------------------------------------------- /examples/psdExample/index.php: -------------------------------------------------------------------------------- 1 | getCopy(); 14 | 15 | $new_width = $img1->getWidth() / 2; 16 | $new_height = $img1->getHeight(); 17 | 18 | $img2->crop($new_width, $new_height, $new_width)->reverseColors(); 19 | $img1->crop($new_width, $new_height)->concat($img2); 20 | 21 | echo $img1; -------------------------------------------------------------------------------- /examples/psdExample/resources/angelwings.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/psdExample/resources/angelwings.psd -------------------------------------------------------------------------------- /examples/simpleTextExample/index.php: -------------------------------------------------------------------------------- 1 | crop($width, $height); 33 | } 34 | 35 | if(!empty($rotate)) $img->rotate($rotate); 36 | 37 | echo $img; 38 | -------------------------------------------------------------------------------- /examples/simpleTextExample/resources/OldStreetSigns.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/simpleTextExample/resources/OldStreetSigns.ttf -------------------------------------------------------------------------------- /examples/textAlignExample/index.php: -------------------------------------------------------------------------------- 1 | 29 | 30 | 31 | 32 |24 | 27 |Image Preview 25 |26 | 28 | 31 |Original Filepath 29 |getFilepath(); ?> 30 |32 | 35 |Width 33 |getWidth(); ?> 34 |36 | 39 |Height 37 |getHeight(); ?> 38 |40 | 43 |Mime Type 41 |getMimeType(); ?> 42 |44 | 47 |Orientation 45 |getOrientation(); ?> 46 |48 | 51 |Colors Used 49 |$color "; ?> 50 |Text Align Example 33 | 34 | 35 |" />
36 | 37 | 43 | 44 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /examples/textAlignExample/resources/OldStreetSigns.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pamblam/EasyImage/ad6bb9681349e362e5e985a0015f34f6b647e661/examples/textAlignExample/resources/OldStreetSigns.ttf --------------------------------------------------------------------------------