I have a code that will resize the image to a specific size and store it in a specific folder. until here everything is working fine. Can I retrieve the image created after resizing it before storing it in the folder, in order to add a watermark to it.. in order to reduce resources as you know... but My code is giving me an error: **
imagecreatefrompng(1): failed to open stream
**
this my code :
// resizing code
....
$result = imagepng($dst_img);
// i get error : imagecreatefrompng(1): failed to open stream
$im = imagecreatefrompng($result);
$sx = imagesx($im); //get Our PNG Width
$sy = imagesy($im); //get Our PNG Height
......