img_kit
Version, currently master branch1 version
- master branchlatestJun 27, 2020
github.com/Hentioe/imgkit.cr
Simple and powerful image tookit
5 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
img_kit:
github: Hentioe/imgkit.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.35.1- License
- MIT
- Author
- Hentioe
Dependencies
Development Dependencies
- ameba~> 0.13.0github: crystal-ameba/amebadev
README
ImgKit
Image Toolkit for Crystal (based on MagicWand binding)
Requirements
libmagickwand-dev- Ubuntu:
apt install libmagickwand-dev - Mac:
brew install imagemagick
- Ubuntu:
Installation
-
Add the dependency to your
shard.yml:dependencies: img_kit: github: Hentioe/imgkit.cr -
Run
shards install
Usage
require "img_kit"
# Resize
img = ImgKit::Image.new("demo.png")
img.resize(width: 301)
img.save("output/resize.png")
img.finish
# Blur
img = ImgKit::Image.new("demo.png")
img.blur(5.0)
img.save("output/blur.png")
img.finish
# Crop
img = ImgKit::Image.new("demo.png")
img.crop(width: 120, height: 200, x: 50, y: 50)
img.save("output/crop.png")
img.finish
# Combin
img = ImgKit::Image.new("demo.png")
img.resize(width: 410)
img.blur(5.0)
img.crop(width: 200)
img.save("output/combin.png")
img.finish
Contributing
- Fork it (https://github.com/Hentioe/imgkit.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Hentioe - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 27, 2020
- Crystal
0.35.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Hentioe/imgkit.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1