[BUGFIX] Image CE rendering does not scale images 56/26556/6
authorThomas Blaß <thomas@blass-net.de>
Tue, 24 Dec 2013 11:33:46 +0000 (12:33 +0100)
committerBenjamin Mack <benni@typo3.org>
Wed, 15 Jan 2014 17:09:40 +0000 (18:09 +0100)
commitf273fff1749825fe624dce5958fe338dec01247e
tree19cd35edfaf1687d303adc8ef2fdb529f65c16e1
parent447dba14b2d49f74741691b3a6db35d4877324ff
[BUGFIX] Image CE rendering does not scale images

When rendering images with CssStyledContent while using the features
maxW and equalHeight at the same time, the rendering needs to pre-
calculate the target sizes. Doing this the GifBuilder is used to
determine the width and height of the file while still relying on the
being a locally reachable path. Since the introduction of FAL uids will
be present at that point and therefore this calcuation will fail.

This change extracts the width and height of the image from the
according file object which not only fixes the the mentioned issue but
will be way more performant since the values doe not need to be
derived from the filesystem.

Resolves: #45086
Releases: 6.2
Change-Id: Icb03d337bb84851a5c905a45c4941fc9d9539033
Reviewed-on: https://review.typo3.org/26556
Reviewed-by: Wouter Wolters
Reviewed-by: Frans Saris
Reviewed-by: Thomas Blaß
Tested-by: Thomas Blaß
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/css_styled_content/Classes/Controller/CssStyledContentController.php