png_util
Version, currently 0.1.01 version
- 0.1.0latestMay 26, 2021
github.com/matthewmcgarvey/png_util
PNG Image Resizing
3 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
png_util:
github: matthewmcgarvey/png_util
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
>= 0.35.1- License
- MIT
- Author
- Matthew McGarvey
Dependencies
Development Dependencies
- ameba~> 0.13.0github: crystal-ameba/amebadev
README
PNGUtil
This project was built from stumpy_png and stumpy_core. Many thanks to @l3kn for all the work you did!
Usage
Install the png_util shard
shards init- Add the dependency to the
shard.ymlfile
...
dependencies:
png_util:
github: matthewmcgarvey/png_util
...
shards install
Resize Image
require "png_util"
canvas = PNGUtil.read("foo.png")
canvas.resize(120, 120)
PNGUtil.write(canvas, "resized-foo.png")
Troubleshooting
If you run into errors like
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make sure zlib is installed
(Installing zlib under ubuntu).
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- May 26, 2021
- Commit
a85adb643ae2- Crystal
>= 0.35.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/matthewmcgarvey/png_util
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1