Bug #76678

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

Added by Jigal van Hemert over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2016-06-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

#1

Updated by Mathias Schreiber over 3 years ago

  • Status changed from New to Closed

HTMLArea is no longer supported by TYPO3.
You can open up new issues here https://github.com/FriendsOfTYPO3/rtehtmlarea.

Cheers
Mathias

Also available in: Atom PDF