imageman 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
imageman 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
imageman 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT License
开发语言 Nim
操作系统 跨平台
软件类型 开源软件
开源组织
地区 不详
投 递 者 首席测试
适用人群 未知
收录时间 2021-12-23

软件简介

Imageman

Rudimentary image manipulation framework.

Some things may or may not work correctly.

Check examples directory for short demonstration.

Why

To have some boilerplate for recreational programming with images. Manipulate. Images.

Projects using imageman

diffimg - image diffing tool and library.

blurhash - blurhash algorith implementation.

Installation

nimble install imageman

Backends

libjpeg(-turbo)

  • Activated with imagemanLibjpeg flag. Enabled by default.
  • SIMD accelerated JPEG encoder/decoder.
  • Dynamically linked. Requires dll/so/dylib at runtime.

libpng

  • Activated with imagemanLibpng flag. Enabled by default.
  • Fast PNG encoder/decoder (outperforms stb_image).
  • Dynamically linked. Requires dll/so/dylib of itself and zlib at runtime.

stb_image

  • Activated with imagemanStb flag. By default only enabled if libjpeg and libpng are disabled.
  • Supports reading and writing PNG, JPEG, BMP and TGA images but with limited control.
  • Header only - compiled in.

Features

  • Easy manipulation of individual pixel components
  • Image reading/writing
    • PNG using libpng
    • JPG using libjpeg(-turbo)
    • BMP
    • TGA
  • Color modes
    • ColorRGBU - 8bit uint 3 components
    • ColorRGBAU - 8bit uint 4 components
    • ColorRGBF - 32bit float 3 components
    • ColorRGBAF - 32bit float 4 components
    • ColorRGBF64 - 64bit float 3 components
    • ColorRGBAF64 - 64bit float 4 components
    • ColorHSL - 32bit float
    • ColorHSLuv - 64bit float, perceptually uniform, unlike normal HSL
    • ColorHPLuv - 64bit float RGB float components have valid range from 0 to 1. Hue range is 0..360. Saturation/Lightness range from 0 to 1.
  • Filtering
    • General convolutional kernel routine
      • Smoothing
      • Sharpening
      • Edge detection
      • Blur
    • Greyscale
    • Negative
    • Sepia
    • Quantization
  • Dithering
    • Some kernels
  • Resizing
    • Nearest neighbour
    • Bilinear
    • Trilinear
    • Bicubic
    • Lanczos
    • Catmull-Rom
    • Cubic Hermite
  • Drawing
    • Line
    • Circle
    • Ellipse
    • Bezier curve
  • Rotating
    • Vertically, Horizontally
    • Radial
  • Documentation

Examples

See examples directory.

展开阅读全文

代码

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
0 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部