moc/imageoptimizer

Last activity on 8 August 2019
  • 17
  • 6
  • 23443
composer require moc/imageoptimizer

Flow package that optimizes generated thumbnail images (jpg, png, gif, svg) for web presentation.

3.0.1

Flow package that optimizes generated thumbnail images (jpg, png, gif, svg) for web presentation.

Version
3.0.1
Type
neos-package
Release Date
Apr 26, 2018 9:20:09 a.m.
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT
  • #flow
  • #performance
  • #media
  • #images
  • #neos
  • #imageoptimization
c1eb87061fa2c8ffd9f7651229a7719263c0721a

MOC.ImageOptimizer

Scrutinizer Code Quality Latest Stable Version Total Downloads License

Introduction

Neos CMS / Flow framework package that optimizes generated thumbnail images (jpg, png, gif, svg) for web presentation.

Original files are never affected since copies are always created for thumbnails.

Non-blocking during rendering (asynchronous) optimization.

Using jpegtran, optipng, gifsicle and svgo for the optimizations.

Should work with Linux, FreeBSD, OSX, SunOS & Windows (only tested Linux & FreeBSD so far).

Compatible with Neos 1.x-2.x+ / Flow 2.x-3.x+

Only supports local file system (no CDN support yet)

Installation

Requires npm (node.js) to work out of the box, although binaries can also be installed manually without it.

composer require "moc/imageoptimizer" "~2.0"

Ensure the image manipulation libraries jpegtran (JPG), optipng (PNG), gifsicle (GIF) and svgo (SVG) are installed globally. Libraries can be skipped if desired.

Alternatively install them using npm:

# Globally
npm install -g jpegtran-bin optipng-bin gifsicle svgo

# Locally
npm install --prefix Packages/Libraries/MOC.ImageOptimizer/Resources/Private/Library

Configuration

Using the Settings configuration, multiple options can be adjusted.

Optimization can be disabled for specific file formats.

Additionally options for optimization level (png & gif), progressive (jpg), pretty (svg) can be adjusted.

Usage of global available binaries can be configured instead or for specific formats.

Enable using the setting MOC.ImageOptimizer.useGlobalBinary and configure the path in MOC.ImageOptimizer.globalBinaryPath.

Usage

  • Clear thumbnails to generate new ones that will automatically be optimized.

./flow media:clearthumbnails

  • See system log for debugging and error output.
The content of the readme is provided by Github
The same vendor provides 5 package(s).