English 中文(简体)
• 如何利用Sphp制作图像?
原标题:How to output images using php?
  • 时间:2011-10-25 12:15:58
  •  标签:
  • php
  • gd
<?php
$f = new SaeFetchurl();
$img_data = $f->fetch(  http://ss7.sinaimg.cn/bmiddle/488efcbbt7b5c4ae51ca6&690  );
$img = new SaeImage();
$img->setData( $img_data );
$img->resize(200); 
$img->flipH(); 
$img->flipV(); 
$new_data = $img->exec();
$img->exec(  jpg  , true );

if ($new_data === false)
        var_dump($img->errno(), $img->errmsg());
?>

这里是《刑法》。 它提供图像服务。 当我上页时,我就看到这些东西。

意思是:

如何利用Sphp制作图像?

最佳回答

用我的话来说,你指的是一刀切?

2. 制作标题信息

header( Content-type: image/jpeg );
问题回答

照片可以是解释的形象(代码)。 您不妨将网站的文字列入src的属性。

和:

<img src="foobar.php?optional=params" />

仅加在Alex。 我在过去的新几天里一直在使用这一信息,我已注意到,如果没有下文的两条外线,我的形象就不会出现在网页上。

    header( Content-type: image/jpeg );
    imagepng($img);
    imagedestroy($img);




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签