Answer the question
In order to leave comments, you need to log in
Photo over frame in php?
I have a script that takes a photo from the social. network and puts a frame on it, and a person can share it.
Here is the code for the frame. How to put more frames, there is only one by default?
<?php
$id = $_GET["id"];
$urlimg = 'http://i500.mycdn.me/getImage?photoId='.$_GET['urll'].'&type=6';
// Load the stamp and the photo to apply the watermark to
$stamp = imagecreatefrompng('new/'.$_GET["numm"].'.png');
$im3 = imagecreatefromjpeg($urlimg);
imagecopy($im3, $stamp, 0, 0, 0, 0, 128, 128);
// Output and free memory
header("Content-Type: image/png");
imagepng($im3, 'images/'.$id.'.png');
imagedestroy($im3);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question