I create several crops to use it during the creation of medias.

Problem
If :

  1. We select a crop which is exactly on the edge of the picture ;
  2. Save ;
  3. Edit the media

The crop is not display correctly (it is the default crop displayed), but the image coordinates are saved in database.

Is it a bug ?
Thank you.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chloé Corfmat created an issue. See original summary.

woprrr’s picture

That seems strange, I need more informations about your instance. We have specific module that modify UI by example ? you use IEF or not ? EntityBrowser ? or you just modify the media directly onto media/1/edit by examples ?

You use the dev version but you have similar problems with 1.4 ? If yes that is possible bug yes.

Chloé Corfmat’s picture

Well, I tried also with 1.4 and I have the same problem.

I just modify the media onto media/x/edit. Some other modules are already installed as IEF and EntityBrowser - but they are not used during the edition.

woprrr’s picture

woprrr’s picture

I suposse that can be a possible missconfiguration.

Are you sure your configuration are clean ?

  • Crop types are used in ImageStyle 'manual crop' effect ?
  • Crop types are correctly selected onto fieldWidget level ?
Chloé Corfmat’s picture

FileSize
827.41 KB
903.43 KB

The problem is when the crop is stick on the right edge AND on the left edge. I confirm the problem.

I am checking what you said on your last comment.

Image test1 is when i create the media and select my crop.
Image test2 is when i want to edit my media.

woprrr’s picture

I am checking what you said on your last comment.

Image test1 is when i create the media and select my crop.
Image test2 is when i want to edit my media.

Just to avoid a small doubt, When we edit / add in edit form you have corrects croped area and when we try to see your crop edited in node view or media view your croped image are already in first crop ?

Chloé Corfmat’s picture

No, it is only in the edit form when you want to check the crops.
In fact, coordinates are correctly saved on database. Sorry, for the doubt.

woprrr’s picture

Hummmm, you use Memcache or Redis ? At this point in all sites using IWC + Crop API with CDN we have one "bug" in Crop API basis (when we display image after editing) but at edit level never seen that problem. I try to reproduce that but I can't :( I need to see that !! Can you make a small test into fresh instance of Drupal 8 with image_widget_crop_examples to avoid eventuals missconfiguration problems ?

If all crop area are exposed to Database IWC have already acomplish her job, but in editing we need to be sure we retrieive correctly all crops.

\Drupal\image_widget_crop\Element\ImageCrop::processCrop at line 200 make a small kint($crop);die; and we can seen your crops ?

woprrr’s picture

Status: Active » Closed (cannot reproduce)

Seen with @Chloé Corfmat that would be an MissConfiguration problem for that issue. If anyone found a real bug like that feel free to re-open.

Thank a lot for our feedback @Chloé Corfmat.