Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arndtjenssen-picothumbs

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arndtjenssen-picothumbs

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Picothumbs

== Description Picothumbs is a ruby gem to allow easy access the web thumbnail generation service at http://www.picothumbs.com

== Installation sudo gem install arndtjenssen-picothumbs -s http://gems.github.com

== Usage You need to register (for free) at www.picothumbs.com and retrieve your api-key and storage-key from the profile page.

Then in your (rails) application you can do:

create a service request class

thumbs = Picothumbs.new("your-api-key", "your-storage-key")

request to create the thumbnail from google.com

thumb.simple_request("www.google.com")

request-key

poll if the thumbnail has been created

thumbs.poll

one of: "ok" or "queued"

download the thumbnail to a local path with a specific size

thumbs.download("/tmp", Picothumbs::MEDIUM)

stores a thumbnail in tmp

For other possible sizes see http://www.picothumbs.com/features

== Gem Home

== Limitations Very first version does cover only simple api requests.

== Todos

  • Create specs
  • Add rdoc
  • Make request fault tolerant
  • Add REST API requests

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc