J
J
Jony13372015-10-17 14:14:17
PHP
Jony1337, 2015-10-17 14:14:17

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

1 answer(s)
I
Ilya Levin, 2015-10-19
@Jony1337

On which line is the frame created?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question