stumpy_loader

Version, currently 0.1.03 versions

github.com/unn4m3d/stumpy_loader

No description declared in shard.yml.

0 stars
0 dependents
License: MIT

Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  stumpy_loader:
    github: unn4m3d/stumpy_loader
    version: ~> 0.1.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

stumpy_loader

Build Status

(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

  1. Fork it ( https://github.com/unn4m3d/stumpy_loader/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors