I search the web for this and i can’t find what i need.
I have an image (in or outside server) and i need to flip the image horizontaly or vertically with php, and show it like this:
<?
$img = $_GET['img'];
header('Content-type: image/png');
/*
do the flip work
*/
imagepng($img, NULL);
imagedestroy($tmp_img);
?>
How can i do it?
Thank you all.
You can also achieve this with the
imagecopyfamily of functions if you don’t happen to have ImageMagick available. See this example: