Dre*_*zyk 4 php gd jpeg watermark image
我无法找到解决方案.我想为此图片添加20px空白区域:http: //img233.imageshack.us/img233/419/78317401.jpg
然后将此水印粘贴在底部(空白处)
所以输出将是:
http://img252.imageshack.us/img252/4554/wynik.jpg
我不想拉伸它.
编辑
是用WIdeImage做的.Rly简单.
Leo*_*sov 19
1)用图像加载两个图像
http://www.php.net/manual/en/function.imagecreatefromjpeg.php
2)获得第一张图像的高度和宽度
http://www.php.net/manual/en/function.imagesy.php
http://www.php.net/manual/en/function.imagesx.php
3)创建高度+ 20的更大图像
http://www.php.net/manual/en/function.imagecreatetruecolor.php
4)将第一张图像和第二张图像复制到较大的图像
http://www.php.net/manual/en/function.imagecopy.php
5)保存
http://www.php.net/manual/en/function.imagejpeg.php
6)完成