png_util
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.yml
file
...
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).
Repository
png_util
Owner
Statistic
- 2
- 0
- 0
- 0
- 1
- over 3 years ago
- May 26, 2021
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 20:47:11 GMT
Languages