stumpy_loader v0.1.2
stumpy_loader
(EXPERIMENTAL) Extension-based loader for image files
⚠️ 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
⚠️ 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
Repository
stumpy_loader
Owner
Statistic
- 0
- 0
- 0
- 1
- 1
- almost 5 years ago
- June 18, 2017
License
MIT License
Links
Synced at
Fri, 22 Nov 2024 05:21:04 GMT
Languages