Home > Backend Development > PHP Tutorial > im-关于php gd配置是否成功问题请教

im-关于php gd配置是否成功问题请教

WBOY
Release: 2016-06-02 11:28:58
Original
1040 people have browsed it

im图片php

图片说明
上面是我在php.in配置文件中开启gd后写的dome 结果显示gd能用。

<code>  header("Content-type: image/jpeg");  //创建目标图像  $dst_im = imagecreatetruecolor(150, 150);  //源图像  $src_im = @imagecreatefromjpeg("images/flower_1.jpg");  //拷贝源图像左上角起始 150px 150px  imagecopy( $dst_im, $src_im, 0, 0, 0, 0, 150, 150 );  //输出拷贝后图像  imagejpeg($dst_im);  imagedestroy($dst_im);  imagedestroy($src_im);?>这个代码又出现错误啊!![图片说明](http://img.ask.csdn.net/upload/201512/30/1451468201_149679.png)```</code>
Copy after login
<code></code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template