1
0

downgrade to kirby v3

This commit is contained in:
Philip Wagner
2024-09-01 10:47:15 +02:00
parent a4b2aece7b
commit af86acb7a1
1085 changed files with 54743 additions and 65042 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View 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();
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB