Skip to content

Commit

Permalink
Added test file for PNG with transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
sprain committed Aug 14, 2012
1 parent 4e190af commit 46d5e7a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/pngTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
include('../class.Images.php');

//Create a new object, send relative or absolut path to your image
$image = new Image('pngWithTransparency.png');

//We can rotate the image
#$image->rotate(90);

//and we can resize and crop it to have a nice thumbnail
$image->resize(150,150,'crop');

//lets see what we have!
$image->display();
Binary file added test/pngWithTransparency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 46d5e7a

Please sign in to comment.