Bug #100972
Updated by Michael Stopp about 1 year ago
The reference for imgResource (up to the latest version) gives a simple example for the <code>noScale</code> option: <pre><code class="shell"> file = fileadmin/test.jpg file.width = 240m file.height = 240m file.noScale = 1 </code></pre> The result should be: <pre><code class="shell"> <img src="fileadmin/test.jpg" width="240" height="180" /> />` </code></pre> But at least up to V11 (haven't yet tested newer versions) this is not the case. The width and height attributes are set with the actual dimensions of the image. This seems basically the same problem as described _almost a decade ago_ in #54533. I can't say whether this is still the same problem, but the result still is. Something needs to be fixed here, either the documentation or the actual behaviour of noScale. It's highly frustrating, if you try to use a feature exactly as documented, but it simply doesn't work. There are workarounds (eg. with <code>layout.default.element</code> as mentioned in #54533) and maybe this is really hard to fix - but then the documentation shouldn't say so + ought to be updated.