New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rack-convert-webp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rack-convert-webp

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Rack::Convert::Webp

Auto convert to WebP.

Installation

gem install rack-convert-webp

Usage

$ rackup -r 'rack/convert/webp' -b "use Rack::Convert::Webp;run Rack::Directory.new '.'"
$ curl -X GET -I -H "Accept: image/webp" -H "Content-Type: image/jpeg" 'http://localhost:9292/example.jpg'
HTTP/1.1 200 OK
Last-Modified: Thu, 20 Mar 2014 14:50:34 GMT
Content-Type: image/webp
Content-Length: 19340
X-Encoding-Time: 42ms
X-Compress: 24% - original: 78361 webp: 19340
Connection: keep-alive
Server: thin 1.6.1 codename Death Proof

$ curl -X GET -I -H "Accept: image/webp" -H "Content-Type: image/jpeg" 'http://localhost:9292/example.jpg?quality=10'
HTTP/1.1 200 OK
Last-Modified: Thu, 20 Mar 2014 14:50:34 GMT
Content-Type: image/webp
Content-Length: 4346
X-Encoding-Time: 36ms
X-Compress: 5% - original: 78361 webp: 4346
Connection: keep-alive
Server: thin 1.6.1 codename Death Proof

FAQs

Package last updated on 20 Mar 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