可以调整gif动画图片尺寸的很实用的php类_PHP教程
程序员文章站
2024-02-12 10:17:58
...
类的使用demo:
"roucheng.php" = ->temp_dir = "keleyi"->resize("keleyi.gif","keleyi_resized.gif",500,500?>
类的源代码,保存为roucheng.php文件:
= "frames" = 0 = 0 = = = = 0 = = = = 0 = 0 , = =
resize(,,, ->decode( ->wr=/-> ->hr=/-> -> ->encode(,, ->
decode( ->decoding = -> ->loadfile( -> ->get_graphics_extension(0 -> -> ->get_image_block(0 ->get_graphics_extension(1 -> -> ->get_image_block(1 (!->checkbyte(0x3b) && !-> ->get_comment_data(1 ->get_graphics_extension(2 ->get_image_block(2 ->writeframes( -> ->decoding =
encode(,, = ""
上一篇: unset火狐无效,该如何处理