downgrade to kirby v3
This commit is contained in:
BIN
vendor/claviska/simpleimage/example/flag.png
vendored
Normal file
BIN
vendor/claviska/simpleimage/example/flag.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.6 KiB |
25
vendor/claviska/simpleimage/example/index.php
vendored
Normal file
25
vendor/claviska/simpleimage/example/index.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
require '../src/claviska/SimpleImage.php';
|
||||
|
||||
// Ignore notices
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
|
||||
try {
|
||||
// Create a new SimpleImage object
|
||||
$image = new \claviska\SimpleImage();
|
||||
|
||||
// Manipulate it
|
||||
$image
|
||||
->fromFile('parrot.jpg') // load parrot.jpg
|
||||
->autoOrient() // adjust orientation based on exif data
|
||||
->bestFit(300, 600) // proportionally resize to fit inside a 250x400 box
|
||||
->flip('x') // flip horizontally
|
||||
->colorize('DarkGreen') // tint dark green
|
||||
->border('black', 5) // add a 5 pixel black border
|
||||
->overlay('flag.png', 'bottom right') // add a watermark image
|
||||
->toScreen(); // output to the screen
|
||||
|
||||
} catch(Exception $err) {
|
||||
// Handle errors
|
||||
echo $err->getMessage();
|
||||
}
|
||||
BIN
vendor/claviska/simpleimage/example/parrot.jpg
vendored
Normal file
BIN
vendor/claviska/simpleimage/example/parrot.jpg
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
Reference in New Issue
Block a user