当前位置: 首页 > 实例教程 > PHP imagick实例 > handle > imagick_image2blob()

handle
imagick_getcanvas()
imagick_blob2image()
imagick_image2blob()
imagick_clone_handle()
imagick_destroyhandle()

handle 中的 imagick_image2blob()


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-07-27   浏览: 395 ::
收藏到网摘: n/a

image2blob - 软晨网(RuanChen.com)

<?php $handle = imagick_readimage( getcwd() . "/example/files/c/image.jpg" ) ; if ( imagick_iserror( $handle ) ) { $reason = imagick_failedreason( $handle ) ; $description = imagick_faileddescription( $handle ) ; print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n" ; exit ; } if ( !( $image_data = imagick_image2blob( $handle ) ) ) { $reason = imagick_failedreason( $handle ) ; $description = imagick_faileddescription( $handle ) ; print "imagick_image2blob() failed<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n" ; exit ; } header( "Content-type: " . imagick_getmimetype( $handle ) ) ; print $image_data ;
?>


评论 (0) All

登陆 | 还没注册?