stumpy_loader
Version, currently 0.1.23 versions
- 0.1.2latestFeb 21, 2020
- 0.1.1not indexedFeb 21, 2020
- 0.1.0not indexedFeb 21, 2020
github.com/unn4m3d/stumpy_loader
No description declared in shard.yml.
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
stumpy_loader:
github: unn4m3d/stumpy_loader
version: ~> 0.1.2Then run:
shards installshard.yml
- Crystal
0.22.0- License
- MIT
- Author
- unn4m3d
Dependencies
Runtime Dependencies
- stumpy_core*github: stumpycr/stumpy_core
README
stumpy_loader
(EXPERIMENTAL) Extension-based loader for image files
:warning: This project is experimental, so you can experience compilation errors with third-party loaders
Installation
Add this to your application's shard.yml:
dependencies:
stumpy_loader:
github: unn4m3d/stumpy_loader
Usage
require "stumpy_loader"
# Require some loaders (StumpyPNG and StumpyTGA)
require "stumpy_png"
require "stumpy_tga"
# You MUST call stumpy_load! macro AFTER all loaders are defined
stumpy_load!
canvas1 = StumpyLoader.load "some/png/file.png"
canvas2 = StumpyLoader.load "some/file.tga"
canvas3 = StumpyLoader.loag "file.jpg" # Raises exception because there is no loader for JPEG
StumpyLoader.save canvas1, "file.png" # OK
StumpyLoader.save canvas1, "file.tga" # Raises exception because there is no saver for TGA
In above example, stumpy_png and stumpy_tga are used
:warning: You MUST call stumpy_load! macro AFTER all loaders are defined
Contributing
- Fork it ( https://github.com/unn4m3d/stumpy_loader/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
- unn4m3d - creator, maintainer
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.2- Tagged
- Feb 21, 2020
- Commit
d63e1436d4d9- Crystal
0.22.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/unn4m3d/stumpy_loader
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 3