可以调整gif动画图片尺寸的很实用的php类_PHP教程
程序员文章站
2022-05-26 17:50:09
...
类的使用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(,, = ""