Skip to content
Snippets Groups Projects
Commit bfa2524c authored by Rémy DANIEL's avatar Rémy DANIEL Committed by Georg Ringer
Browse files

[BUGFIX] Ensure scaled image size width/height are integers

Given the input width/heigth, getImageScale can return either int or float, depending of the calculated sizes.

This can triggers strict type warnings in calling code,
if width/heigth are expected to be integers.

In order to fix this, returned width/height are now always integers.

Resolves: #100076
Releases: main, 11.5
Change-Id: Ic29ba67f80a3a11a00a5b66f2644f923fa765064
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78019


Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarSybille Peters <sypets@gmx.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 7b7a7a1c
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment