Epic #77810: Improve (responsive) image handling
Apply image cropping to click-enlarge NOT
With having resolved Bug #72798 images cropped in backend are now also cropped if click-enlarged. But what if thats exactly what you DO NOT want? What if you want to crop the images as thumbnails BUT display fullsize with click-enlarge? Is there an option to configure that? There is plenty of possible situations you might want to do that ...
#1 Updated by Georg Ringer over 3 years ago
- Status changed from New to Needs Feedback
Did you check out the related changes like https://review.typo3.org/#/c/46114/5/typo3/sysext/css_styled_content/static/setup.txt or https://review.typo3.org/#/c/46114/5/typo3/sysext/fluid_styled_content/Configuration/TypoScript/Static/Setup/lib.fluidContent.ts if using fluid_styled_content?
removing the crop field in TS should be enough to get the previous behaviour back.
#5 Updated by Martin Weisbach about 3 years ago
Alexander Opitz wrote:
what is the state of this issue? Did I understand it correctly, that you could solve it with changed TS?
Yes, thats's right. If you put
The images are cropped as thumbnail but displayed in full size on click-enlarge ...
#7 Updated by Martin Weisbach about 3 years ago
- Status changed from Closed to New
Now moving on from css_styled_content to fluid_styled_content we have the same issue again.
doesn't solve the problem in fluid.
Further on, I can not see, that the problem has been solved for the end user. It is still not possible to choose if you want the pictures on click enlarge to display in full size OR only the cropped part you chose for the thumbnail...
#14 Updated by Sebastian Klein over 1 year ago
Just as Georg wrote in the very first comment: all you need is to remove the crop field in TypoScript. In TYPO3 v8 and fluid_styled_content, this is:
This allows to crop the thumbnail images and use the original picture ratio on click-enlarge (lightbox).
However, this applies to all lightbox images. It's currently not possible for an editor to choose between crop and original (for click-enlarge) on a single image.
#15 Updated by Susanne Moog 3 months ago
- Status changed from New to Closed
Following up on the latest comment:
There is no bug here, the behaviour can be configured by an integrator via the mentioned TypoScript setting (it could even be applied depending on the content element).
Currently, there is no option for the editor to do so - this is something that an integrator can implement in an installation by adding a field to the table and reacting on that value with overwriting the TypoScript (so basically: ext_tables.sql + TCA + TypoScript). I don't see this feature as something that needs to be generally available in the TYPO3 Core as it adds complexity for editors that seems unnecessary for most use cases.
If you think differently, please open a new issue with the feature request.