-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mtking2/development
Rename method.
- Loading branch information
Showing
4 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
# img2zpl | ||
|
||
[![gem](https://img.shields.io/gem/v/img2zpl)](https://rubygems.org/gems/img2zpl) | ||
|
||
[![downloads](https://img.shields.io/gem/dt/img2zpl?color=brightgreen)](https://rubygems.org/gems/img2zpl) | ||
|
||
Ruby library to convert images to usable & printable ZPL code | ||
|
||
### Installation | ||
|
||
Add the gem to your Gemfile: | ||
``` | ||
gem 'img2zpl' | ||
``` | ||
And then run `bundle install` | ||
|
||
Or install it yourself with: | ||
``` | ||
gem install img2zpl | ||
``` | ||
|
||
### Usage | ||
|
||
```ruby | ||
require 'img2zpl' | ||
|
||
img = Img2Zpl::Image.open('foo.jpg') | ||
zpl = img.zpl #=> "^FO0,0^GFA, ... ^FS" | ||
zpl = img.to_zpl #=> "^FO0,0^GFA, ... ^FS" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Img2Zpl | ||
VERSION = '0.1.0' | ||
VERSION = '0.1.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters