Closed mapattacker closed 3 years ago
I think this code will be more correct:
<?php
use PHPImageWorkshop\ImageWorkshop;
require_once('packages/PHPImageWorkshop/Core/ImageWorkshopLayer.php');
require_once('packages/PHPImageWorkshop/Exception/ImageWorkshopException.php');
$norwayLayer = ImageWorkshop::initFromPath('images/acacia_auriculiformis1.jpg');
$watermarkLayer = ImageWorkshop::initFromPath('../copyright.jpg');
// $norwayLayer->addLayer(1, $watermarkLayer, 12, 12, "LB");
//
// $image = $norwayLayer->getResult();
I close this issue as it's not an ImageWorkshop issue.
I can recommend you to learn PHP.
I think this should be something basic, but as I am a somewhat novice PHP user, would greatly appreciate your advice.
Below is how I structure my directory.
This is the
test.php
which I used to try to call the package.However, I got an error saying