Merge with MediaContextualCrop

Created on 24 August 2023, over 1 year ago
Updated 5 October 2023, over 1 year ago

Hello,

I'm the developer of the media contextual crop solution, which aims to enable "crop contextualization" in media (via references or embed in CKeditor).

In the case of the use of reference fields (via media_library_media_modify) I have set up a "standardized" approach in order to manage the various CROP plugins (Focal Point / Image Widget Crop).

Assembly need :
- Main module : media contextual crop
- The interface with Media Library Media Modify media contextual crop References
- The interface with focal point module media contextual crop Focal Point Adapter

If you're interested, take a look at my solution, and if you like merge our solutions.

🌱 Plan
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇫🇷France DrDam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @DrDam
  • 🇩🇪Germany szeidler Berlin

    Hi, thanks for reaching out.

    Do I understand it correctly, that MediaContextualCrop basically supports the same functionality? The Media Library Media Modify Focal Point had a single use-case: That when using the Media Library Media Modify module, our customers have expected to modify the global cropping for an image rather than creating a contextual cropping wherever the image is reused.

  • 🇫🇷France DrDam

    Yes,

    The main point of the collection are you can also use ImageWidgetCrop for contextual croping and use contextual crop (focal point / iwc) in media embed

  • 🇨🇦Canada erichomanchuk

    I've been looking at both modules and would say that they are completely different solution. Please correct me if I'm wrong.

    @DrDam module "Media Contextual Crop" allows the focal point to be different per field. So if I add a media image that allows for a focal point crop I can change the focal point independently on the field. So I could use the same media image on 2 different pages and have a different focal point for each use. Which then allows me to display an image style for each that would be different.

    @szeidler This module "Media Library Media Modify Focal Point" would appear allow you to edit the focal point that is added to the media item but not allow a different focal point crop per instance of the field. So if I edited the media image focal point on node 1 and I had also used the same media item on node 2 the focal point would also be changed on node 2.

  • 🇫🇷France DrDam

    @erichomanchuk :

    So if I add a media image that allows for a focal point crop I can change the focal point independently on the field

    In fact, if you add twice the same media in a media_ref field, you can provide a contextual focal point on each.

    @szeidler This module "Media Library Media Modify Focal Point" would appear allow you to edit the focal point that is added to the media item but not allow a different focal point crop per instance of the field. So if I edited the media image focal point on node 1 and I had also used the same media item on node 2 the focal point would also be changed on node 2.

    Here, you have discribe the "native behavior" between media & crop.
    To be honest, I did'nt have test this module, I have juste check code, and realise, we address the same point.

    I aggreed that the technical approach are totaly different. @szeidler have solve the single use-case issue (media reference field & focal point), "Media Contextual Crop" propose a global solution : for media reference field or Ck5 media embed & for focal Point or Image Widget Crop

  • 🇩🇪Germany szeidler Berlin

    Here, you have discribe the "native behavior" between media & crop.
    To be honest, I did'nt have test this module, I have juste check code, and realise, we address the same point.

    You're right: it's the native behavior with Media & Crop. But it is not the native behavior when using the Media Library Media Modify Focal Point module in addition. Then (at the time the module was created) the focal point position was not stored at all. When using the Media Library Media Modify Focal Point module it will store the position as the global media focal point position.

    I guess both module solutions (purely contextual or global) have their use-cases.

Production build 0.71.5 2024