Add ImageMagick support to thirty bees
Make sure you use Ondřej Surý's PHP PPA (apt-add-repository ppa:ondrej/php
). It's kept up to date and at the time of writing comes with PHP versions 5.5, 5.6, 7.0 and 7.1.
To install the PHP extension, issue the command:
$ apt-get install php-imagick
(yes, that's without the php7.0
prefix)
Unfortunately, the version of ImageMagick that is bundled with Ubuntu (or any version below 7.0.2) is vulnerable: https://imagetragick.com/
In order to install a safe version on production, we will have to compile it from source.
First, make sure you have the necessary tools to build:
$ apt-get install build-essential git
Then download the source with git:
$ git clone https://github.com/ImageMagick/ImageMagick
Change directory:
$ cd ImageMagick
Configure:
$ ./configure
(This step might show some missing dependencies, try to locate the Ubuntu package and install with apt-get
).
Compile and install:
$ make && sudo make install
You will now have the latest version available. Don't forget to update from time to time.
- Upload the module through FTP or your Back Office
- Install the module
- Check if there are any errors and correct them if necessary
- Profit!
thirty bees 1.0.x
PrestaShop is not supported!!
- PHP imagick extension 3.4.0
- ImageMagick 7.0.2 (anything below is vulnerable and not supported!)
- PHP 5.5
- thirty bees 1.0.x
Academic Free License 3.0