Typo3 slow page loading because of ImageMagick (CPU goes up to 100%)

Today I discovered that something must be wrong with a Typo3-Installation. Everytime trying to access a page where some pictures will be resized and combined with some other, the speed is quite low. The site is using ImageMagick for working with pictures.
After checking what is going on at the server I found that typo3 is executing the ImageMagick program convert which is kicking the system utilization up to 100% only for skaling a 50KB picture.
So problem identified: It’s typo3 using ImageMagick!

It looks like that typo3 has a little bit strange behavior when using ImageMagick higher than version 4. This results in incredible high system utilization.
After searching the web I found the solution for the issue.
What needs to be done is set two specific parameters in the typo3conf/localconf.php file of typo3. I did the following:

$TYPO3_CONF_VARS['GFX']['im_version_5']='im6';
$TYPO3_CONF_VARS['GFX']['im_combine_filename']='composite';
$TYPO3_CONF_VARS['GFX']['im_no_effects']='1'; //recommended in case using IM5+
$TYPO3_CONF_VARS['GFX']['im_v5effects']='0'; //recommended in case using IM5+

I found the hint at the following forum: http://www.typo3forum.net/forum/typo3-4-x-fragen-probleme/47656-typo3-imagemagick-hohe-cpu-auslastung-langsam-seiten.html

Website http://nfec.de
Posts created 39

4 thoughts on “Typo3 slow page loading because of ImageMagick (CPU goes up to 100%)

  1. Wow! I’ve been plowing through an “old” TYPO3 installation for a couple of weeks trying to find out why Apache was taking up all the CPU.

    Fiddled with DNS params…
    Added memcached…
    Correct YSlow warnings…
    Nothing helped much.

    Saw your site and tried your imagemagick settings … Boom! Performance!

    I cannot thank you enough!

Leave a Reply

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top