During the development of a gallery extension for TYPO3, I was having some performance issues when during the on-the-fly image scaling.
When displaying the images in the frontend, I would scale the images to a size specified in the plugin configuration. I was using the following code:
...
$imageConf['file'] = $row[image];
$imageConf['file.']['maxH'] = $this->conf[largeMaxH];
$imageConf['file.']['maxW'] = $this->conf[largeMaxW];
$thumbnailImage = $this->cObj->IMG_RESOURCE($imageConf);
...
The $row[image] would contain the image file to be displayed and the maxH and maxW is being set to the image sizes from the plugin configuration. When loading the page every image would be resized to the correct size, but when…
read on