Question

When rendering an image, TYPO3 6.x places it in the _processed_temp folder, where all temporary files are stored.

UNLESS the desired rendering size is equal to the file's original size. Then it will link to the original source file instead. This sounds economical, but in some cases, this is not desirable.

In my case, I have all source images in a protected directory where access is handled by naw_securedownloads. So the img tag becomes something like this:

<img src="http://www.example.com/index.php?eID=tx_nawsecuredl&u=0&g=0&t=1399912827&hash=0a111ac62d806a0ff26649b065f03be674e7d9b3&file=fileadmin/private/images/example.png" />

Which is a big performance issue, as the image won't be compressed nor cached properly, it seems.

I have worked around this by specifying a different rendering image size. But no guarantee this won't happen in other places.

So (how) can this "use original if re-rendering isn't necessary" behaviour be turned off and TYPO3 be forced to put all images it uses into the _processedfolder?

Was it helpful?

Solution

Because I can't just comment your question based on missing reputations, I have to give you the hint by writing an answer.

Have you already tried to overwrite the ImageViewHelper? It says: 'Resizes a given image (if required) and renders the respective img tag'. Maybe it's possible to always process your images by overwriting the viewhelper.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top