Bug #77886

Epic #77810: Improve (responsive) image handling

Apply image cropping to click-enlarge NOT

Added by Martin Weisbach over 3 years ago. Updated about 1 year ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2016-09-08
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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 ...


Related issues

Related to TYPO3 Core - Bug #72798: Apply image cropping to click-enlarged images Closed 2016-01-18

History

#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.

#2 Updated by Martin Weisbach over 3 years ago

Now i got it - you disable it by setting it to NO value at all:

tt_content.image.20.1.imageLinkWrap.crop.data =

#3 Updated by Sascha Egerer over 3 years ago

  • Parent task set to #77810

I think we should provide examples for both behaviours. I'll put that into the scope of #77810 as we are dealing there with coppings anyway.

#4 Updated by Alexander Opitz over 2 years ago

Hi,

what is the state of this issue? Did I understand it correctly, that you could solve it with changed TS?

#5 Updated by Martin Weisbach over 2 years ago

Alexander Opitz wrote:

Hi,

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

tt_content.image.20.1.imageLinkWrap.crop.data =

The images are cropped as thumbnail but displayed in full size on click-enlarge ...

#6 Updated by Alexander Opitz over 2 years ago

  • Status changed from Needs Feedback to Closed

Thanks for your feedback, so closing as solved.

#7 Updated by Martin Weisbach over 2 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.

tt_content.image.20.1.imageLinkWrap.crop.data =

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...

#8 Updated by Alexander Opitz over 2 years ago

Ok, then I misunderstand your last comment.

#9 Updated by Martin Weisbach over 2 years ago

No, you didn't - i just didn't have to solve the issue with fluid_styled_content.

#10 Updated by Riccardo De Contardi over 2 years ago

  • Category set to Frontend

#11 Updated by Philipp Parzer over 2 years ago

Can confirm this bug.
Normally you would do

lib.contentElement.settings.media.popup.crop.data = file:current:crop

but has no effect.

#12 Updated by Björn Paulsen almost 2 years ago

Same Problem here.

Nothing helps! I want the same, cropping by thumbnail, original picture on click-enlarge.
Please give us an option!

#13 Updated by Björn Paulsen almost 2 years ago

  • Tracker changed from Feature to Bug
  • Priority changed from Should have to Must have
  • TYPO3 Version set to 8

#14 Updated by Sebastian Klein about 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:

lib.contentElement.settings.media.popup.crop.data =

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.

Also available in: Atom PDF