Sha256: 511d8a9dd7ff7764d690bdad8d3e9157acd10f816366a5edb2bfc522b177528a
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
# FilePreviews.io (Ruby client) This is the ruby client library for the **Demo API** of [FilePreviews.io](http://filepreviews.io) service. A lot more to come very soon. [Sign up to beta](http://eepurl.com/To0U1) ## Installation Add this line to your application's Gemfile: gem 'filepreviews' And then execute: $ bundle Or install it yourself as: $ gem install filepreviews ## Usage ### Example code ```ruby require 'filepreviews' url = 'http://pixelhipsters.com/images/pixelhipster_cat.png' result = Filepreviews.generate(url) result.preview_url result.metadata_url result.metadata ``` #### Options You can optinally send an options object. ```ruby require 'filepreviews' options = { size: { width: 100, height: 999 }, # supported: 'exif', 'ocr', 'psd' or 'all' which means everything metadata: ['exif', 'ocr', 'psd'] } result = FilePreviews.generate(url, options) result.preview_url result.metadata_url result.metadata ``` ### Command-Line Application Options: * -m, --metadata - load metadata response * -v, --version - display the version * -h, --help - print help ## Author * [Jonah Ruiz](http://www.pixelhipsters.com) ## Contributing Is it worth it? let me fork it I put my thing down, flip it and debug it Ti gubed dna ti pilf nwod gniht ym tup I Ti gubed dna ti pilf nwod gniht ym tup I
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filepreviews-1.0.0 | README.md |