contao/import — Issue #3653: generate image: preserve params even if image is not found
Author: fbender
Created: 2011-11-29 21:55:14+00:00
State: open
Labels: Feature

I was using the image Insert Tag (`{{image::tl_files/does/not/exist.png?alt=Text&width=32&height=32}}`) to refer to images to be added later during the development process, i. e. the files were missing.

The generated image tag looks like this: ``

Instead, to retain the layout and functionality, it should at least preserve the alt text and dimensions (which has to be displayed when the linked resource cannot be processed, e. g. when it's missing), and maybe the URL: ``

Even if the requested resource is not available, this will at least ensure that the alternative text is displayed (as intentioned).

I don't know the source of the problem lies within the image tag code or the Controller::getImage() method itself.

--- _Originally created on November 24th, 2011, at 10:11pm (ID 3653)_