ImagingGo 图像处理包

联合创作 · 2023-09-29

Imaging 是一个 Go 图像处理包,提供了基本的图像处理功能(调整大小,旋转,翻转,裁剪等),这个包基于标准的 Go 图像包。

采用任何实现 image.Image 接口作为输入的图像类型,并返回 *image.NRGBA 类型的新图像(32 位 RGBA 颜色)

示例:

原始图像(将由 512x512px 转变为 128x128px)

Filter Resize result
imaging.NearestNeighbor dstImage
imaging.Box dstImage
imaging.Linear dstImage
imaging.MitchellNetravali dstImage
imaging.CatmullRom dstImage
imaging.Gaussian dstImage
imaging.Lanczos dstImage


浏览 4
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报