开发者

Making one jpeg file from 2 different images brought to user as 2 layers one under another

开发者 https://www.devze.com 2023-03-22 01:57 出处:网络
Let\'s suppose I have some div with picture. Above this div there is another div with png picture of colored border , because of the fact that it is above the main picture colored borders are added to

Let's suppose I have some div with picture. Above this div there is another div with png picture of colored border , because of the fact that it is above the main picture colored borders are added to main picture so the user can see 1 picture with colored borders.

Now the problem is how can I join main picture开发者_Python百科 file and colored borders png into 1 jpg ?


If you have imagick extension, or can install it see here
http://www.php.net/manual/en/function.imagick-compositeimage.php (Also can read this )

Otherwise with Gd
PHP GD library used to merge two images

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号