
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
This minimizes JPGs and PNGs during your middleman builds using the tinify.com API service. In order to use this service, you need to sign up for their service and get an API key.
Add the middleman-tinify
gem to your Gemfile:
# Gemfile
gem 'middleman-tinify'
and run
bundle install
Add the following line to your middleman config file:
# config.rb
activate :tinify, key: 'WfYnAvEjI9pELLsTyh36mKiZbYLZQtZz'
By default, all PNGs and JPGs within your images_dir
will be minified. The
following optional configuration is available:
path
: Configure a different path to locate the relevant images. If left
blank, the images_path
will be used. If your images are located in
source/pictures
, use path: 'pictures'
.
proxy
: You can instruct the API client to make all requests over an HTTP
proxy. Set the URL of your proxy server, which can optionally include
credentials. Take a look at the official API
documentation of the tinify
gem for an example.
N.B.: Image minification will only be done in the regular build, not in the preview server.
Checkout this repository and execute the following commands:
bundle install
TINIFY_KEY=$YOUR_API_KEY rake
This software is licensed under the MIT License. View the license.
FAQs
Unknown package
We found that middleman-tinify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.