imagecr
Version, currently master branch1 version
- master branchlatestJul 28, 2019
github.com/taylorfinnell/imagecr
Quickly determine image types and attributes in Crystal
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
imagecr:
github: taylorfinnell/imagecr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.29.0- License
- MIT
- Author
- Taylor Finnell
Dependencies
This version declares no dependencies.
README
imagecr
Image.cr is a shard to quickly and performantly identify an image type and basic attributes of the image.
Installation
Add this to your application's shard.yml:
dependencies:
imagecr:
github: taylorfinnell/imagecr
Supported Image Types
- TIFF
- GIF
- BMP
- PNG
- PSD
Usage
require "imagecr"
Open from a URL.
image = Imagecr.open("http://someserver.com/test.png")
image.type # => "png"
image.width # => 100
image.height # => 100
Open from a local file.
image = Imagecr.open("~/Downloads/test.png")
image.type # => "png"
image.width # => 100
image.height # => 100
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
- Jul 28, 2019
- Crystal
0.29.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/taylorfinnell/imagecr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 1