Socket
Book a DemoInstallSign in
Socket

camaleon_image_optimizer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camaleon_image_optimizer

1.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Gem Version Ruby Style Guide Build

Camaleon Image Optimizer

This is a convenient image optimizer plugin for Camaleon CMS. Compressing images improves load times and thus SEO. It uses the image_optim gem under the hood. This gem contains multiple utilities for compressing GIF, JPEG, PNG, and SVG files. My experience has been that GIFs JPEGs are easily crushable with these tools, but using multiple PNG compressors is extremely slow. Thus, only one of the PNG compressors is enabled here.

Currently the only setting exposed by the plugin is max_quality, affecting JPEG and PNG images. Please note that setting this to the maximum will still result in some compression.

Installation

Add this line to your application's Gemfile:

gem 'camaleon_image_optimizer'

And then execute:

$ bundle

Or install it yourself as:

$ gem install camaleon_image_optimizer

If you need support for compressing SVG files, install SVGO. Note that you need to do this on your production server, and you must first have NPM installed.

$ npm install -g svgo

If you instead install SVGO locally:

$ npm install svgo

or:

$ yarn add svgo

...then you must add this variable to your Production environment:

SVGO_BIN='node_modules/svgo/bin/svgo'

Usage

Just activate the plugin in Camaleon's admin panel.

Contributing

See CONTRIBUTING.md

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 19 Jan 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.