DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: multishop_image_optimizer

Author:Bas van Beek
Created:2014-06-26T10:29:06.550000000
Changed by:Bas van Beek
Changed:2014-06-26T15:03:27.960000000
Classification:multishop_image_optimizer
Keywords:multishop_image_optimizer
Author:Bas van Beek
Email:bvbmedia@gmail.com
Language:en

img-1 EXT: multishop_image_optimizer

Extension Key: multishop_image_optimizer

Language: en

Version: 2

Keywords: multishop_image_optimizer

Copyright 2013-2014, Bas van Beek, BVB Media BV ( bvbmedia@gmail.com )

Official TYPO3 Multishop web site: https://www.typo3multishop.com/

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.org

Table of Contents

`EXT: multishop_image_optimizer 1 <#__RefHeading__5708_1738894311>`_

`Introduction 3 <#__RefHeading__5710_1738894311>`_

What does it do? 3

What can it be used for? 3

`Installation requirements 4 <#__RefHeading__374_148308531>`_

`Installation instructions 5 <#__RefHeading__836_118242056>`_

`Help TYPO3 Multishop 8 <#__RefHeading__840_118242056>`_

Introduction

What does it do?

This plugin will reduce the file size of uploaded images (belonging to categories, manufacturers and products) without losing image quality.

What can it be used for?

When you upload an image to Multishop the file will be saved to disk and the corresponding record (category, manufacturer or product) is being updated in the database.

Without having to wait the image will be further optimized by executing several commands in the background (shell).

Latest version can be found on Bitbucket:

http://multishop.git.bvbmedia.nl/

Installation requirements

Before installing this plugin make sure your webserver meets the following requirements.

  • Multishop is updated to version 3 or higher
  • Your web server is running PHP 5.3.3 (5.4.27 or later is recommended)
  • PHP Safe Mode is turned off
  • TYPO3 is updated to 4.5.33 (or later) / 4.7.19 (or later) / 6.2.3 (or later)

This plugin relies on the following binaries that should be configured on the hosting server:

  • gifsicle
  • advpng
  • pngout
  • optipng
  • jhead
  • jpegtran
  • jpegoptim

Also you have to copy multishop_image_optimizer/res/image_jpeg_optimizer_jpopt.sh to /usr/bin so it can be executed.

To make it simple we give a draft about howto install these binaries on a CENTOS server:

# installing: pngout, optipng, advpng, jhead, jpegoptim, jpegtran
yum -y install gcc libpng libpng-devel gifsicle pngcrush p7zip lzip

# installing: jhead and gifsicle
yum -y install jhead gifsicle libjpeg

# note: latest pngout can be found here:
# http://static.jonof.id.au/dl/kenutils/pngout-20120530-linux-static.tar.gz

# installing: optipng
yum -y install http://pkgs.repoforge.org/optipng/optipng-0.6.4-1.el6.rf.x86_64.rpm

# installing: advpng
wget http://prdownloads.sourceforge.net/advancemame/advancecomp-1.17.tar.gz?download && tar zxvf advancecomp-1.17.tar.gz && cd advancecomp-1.17 && ./configure && make && make install

# installing: jpegoptim
wget http://www.kokkonen.net/tjko/src/jpegoptim-1.3.0.tar.gz && tar zxvf jpegoptim-1.3.0.tar.gz && cd jpegoptim-1.3.0 && ./configure && make && make strip && make install

Installation instructions

((generated))

TYPO3 backend steps

Login to your TYPO3 dashboard and open the Extension Manager.

Make sure you update the repository first, otherwise it can happen that TYPO3 will download an older version of the plugin.

img-2 img-3 After this your done.

Verify with devlog

If you want to see if the shell commands are executed install devlog:

img-4 Now login to Multishop and upload an image to a product. After that go back to the TYPO3 backend and open devlog.

img-5 Help TYPO3 Multishop --------------------

Do you like Multishop? Share it and join us on:

You'd like to do something back for our hard work?

Send a donation! Link: https://www.typo3multishop.com/donate/

Your support is truly appreciated!