Project

General

Profile

Actions

Feature #14606

closed

Image resize keeping aspect ratio

Added by Robert Markula over 19 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2005-03-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)

Actions #1

Updated by Stanislas Rolland over 19 years ago

In version 0.4.60, if you set a dimension and unset the other, the aspect ratio will be preserved (setting only one attribute and relying on the browser to display correctly).

Actions #2

Updated by Bart Dubelaar about 13 years ago

  • Status changed from Closed to New
  • Target version deleted (0)

This behavior popped up again (4.5.5). The correct aspect ratio is only shown after hitting the save button. While editing the correct aspect ratio is not shown.

Actions #3

Updated by Bart Dubelaar about 13 years ago

Related to bug #18261. A choice needs to be made, which behavior is wanted. Now it is a mix.

Actions #4

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • TYPO3 Version set to 4.5

Does this problem persists in newer TYPO3 CMS 4.5 or maybe in 6.0?

Actions #5

Updated by Robert Markula over 11 years ago

This problem is still present in TYPO3 CMS 4.7.10.

Actions #6

Updated by Alexander Opitz over 11 years ago

  • Status changed from Needs Feedback to Accepted
Actions #7

Updated by Mathias Schreiber almost 10 years ago

  • Target version set to 7 LTS
Actions #8

Updated by Benni Mack about 9 years ago

  • Target version deleted (7 LTS)
Actions #9

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Accepted to Closed
  • Assignee deleted (Stanislas Rolland)

We are sorry, but we close this issue as now TYPO3 uses CKEditor where the issue is not present (the image support has been disabled in CKeditor) and RTEHtmlarea development has been stopped.

RTEHtmlarea has been decoupled from the core and its code is available on GitHub:
https://github.com/FriendsOfTYPO3/rtehtmlarea

If you still need this fixed please create a PR on GitHub

Actions

Also available in: Atom PDF