php - How to change the size of a transparent image
我想大声告诉你
我想大声告诉你 2017-05-16 13:01:45
0
1
421
I used the following method to turn the entire transparent image into black.
$path_1 = './image/1.jpg';
// Picture 2
$path_2 = './image/2.jpg'; ;
//Create image object
$image_1 = imagecreatefromjpeg($path_1);

$image_x1 =imagecreatetruecolor(525, 525);
imagecopyresampled($image_x1, $image_1, 0, 0, 0, 0,525,525,imagesx($image_1), imagesy($image_1));
我想大声告诉你
我想大声告诉你

reply all(1)
漂亮男人

You can use css -webkit-mask-image to mask it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template