- 新增 imglib 包,支持 FilePath/URL/Base64 三种图片输入方式 - 纯白占比检测、白底居中合成、等比缩放、去白边、裁切 - 二维码生成与识别、条形码生成(Code128/EAN13/Code39) - 中文文字图片、书籍信息水印、通用水印叠加 - 输出辅助:EncodeToBytes/EncodeToBase64/SaveToFile/SaveJPEG/SavePNG - 字体缓存,避免重复加载 - 完整测试覆盖(23个测试用例)
23 lines
659 B
Modula-2
23 lines
659 B
Modula-2
module daShangDao_utils
|
|
|
|
go 1.25.0
|
|
|
|
require (
|
|
github.com/boombuler/barcode v1.1.0
|
|
github.com/disintegration/imaging v1.6.2
|
|
github.com/fogleman/gg v1.3.0
|
|
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
|
|
github.com/makiuchi-d/gozxing v0.1.1
|
|
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
|
|
github.com/valyala/fasthttp v1.72.0
|
|
golang.org/x/image v0.43.0
|
|
)
|
|
|
|
require (
|
|
github.com/andybalholm/brotli v1.2.1 // indirect
|
|
github.com/klauspost/compress v1.18.6 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
golang.org/x/text v0.38.0 // indirect
|
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
|
|
)
|