Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images are not processed and unwanted attributes #291

Open
1 task done
timofo opened this issue Jul 17, 2024 · 2 comments
Open
1 task done

Images are not processed and unwanted attributes #291

timofo opened this issue Jul 17, 2024 · 2 comments

Comments

@timofo
Copy link

timofo commented Jul 17, 2024

Bug description
The images are not reduced in size and the 300px standard width is not entered in the popup.
In the frontend it is written in the source code:

<img class="" src="/fileadmin/user_upload/image.jpg" data-htmlarea-file-uid="2" data-htmlarea-file-table="sys_file" width="1920" height="3400" title="" alt="" data-title-override="true" data-alt-override="true" style="">

When I resize the image in the RTE, the new width and height values are entered correctly in the img tag, but the image is not resized and remains unchanged.

I insertet the static template at first before fluid_styled_content.

Steps to reproduce
To reproduce the problem:
Insert an image in RTE and look at the frontend ouput.

Expected behavior
The image is resized and all the attributes should disappear.

Environment

  • TYPO3 version: 12.4.17
  • PHP version: 8.2
  • Extension version: 12.0.2

Documentation
Have you checked the readme/documentation?

  • Yes, but I couldn't find anything helpful
@timofo timofo changed the title Images are rendered like no TypoScript is found. Images are not processed and unwanted attributes Jul 17, 2024
@timofo
Copy link
Author

timofo commented Jul 17, 2024

It seems that the TypoScript is not included. But i can't find my issue.
The ImageRenderingController is never called.

@timofo
Copy link
Author

timofo commented Jul 17, 2024

Ok. I got it working.

I had to change in setup.typoscript

- lib.parseFunc_RTE {
+ lib.parseFunc {

(Is this working for you with _RTE ???)

Then the attributes are removed and the image controllers are called.

Additionally i had to take the files from the "main" branch. (working image processing)

With version 12.0.2 its not working at all. (no image processing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant