Issue Feature Closed

#14606Image resize keeping aspect ratio

Robert Markula 03/12/05, 19:06 updated 05/16/17, 09:55

Description

When changing the image width in the image properties of an inserted image, the image height should be sync’ed accourdingly to keep the image in aspect (and vice versa)

Background: As of now, when only one property (eg. the image width) is changed, the other property (height) remains unchanged, so the image is out of aspect. To keep the image in aspect, calculation has to be done manually by the user.

The desired behaviour can be seen in the ‘Text with image’ element in the Typo3 backend. There you have the possibility to define a ‘maximum’ width or ‘maximum’ height. As long as only one of them is defined, the image stays in aspect. When the user sets both, the image is resized accordingly.
(issue imported from #M881)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.