From 0404c38615b54f6ea58ebd16f104da03f1202324 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 4 Mar 2013 14:14:09 +0100 Subject: [PATCH] - fix path --- ext/gd/tests/imagecrop_auto.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/gd/tests/imagecrop_auto.phpt b/ext/gd/tests/imagecrop_auto.phpt index 1860e39c44..c2b5177fbf 100644 --- a/ext/gd/tests/imagecrop_auto.phpt +++ b/ext/gd/tests/imagecrop_auto.phpt @@ -52,7 +52,7 @@ var_dump(imagesx($im_crop)); var_dump(imagesy($im_crop)); echo "IMG_CROP_THRESHOLD\n"; -$im = imagecreatefrompng("logo_noise.png"); +$im = imagecreatefrompng(__DIR__ . "/logo_noise.png"); $im_crop = imagecropauto($im, IMG_CROP_THRESHOLD, 0.1, 0x0); imagepng($im_crop, __DIR__ . "/crop_threshold.png"); var_dump(imagesx($im_crop)); @@ -79,4 +79,4 @@ int(11) int(11) IMG_CROP_THRESHOLD int(240) -int(134) \ No newline at end of file +int(134) -- 2.50.1