Issue Bug Closed

#76678Pasting HTML with image in RTE scales to magicImageMaximumWidth/Height if no dimensions given in img tag

Jigal van Hemert 06/17/16, 13:07 updated 10/20/17, 13:46

Description

If you paste some HTML with images in the RTE and the img tags do not contain width and height attributes the images are scaled to magicImageMaximumWidht and ~Height. In

\TYPO3\CMS\Core\Html\RteHtmlParser::TS_images_db()

the values of the width and height attributes are first read from the img tag. After that the remote image is fetched and stored in the default upload folder. Next a magic image is created. If no values for width and height are given in the img tag they could be taken from the image dimensions; instead no values are passed to

$magicImage = $magicImageService->createMagicImage($fileObject, $imageConfiguration);

and the image is scaled to the maximum dimensions.

Reviews 0

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