Hello,

I use the core image convert in last effect on image style to create webp, my first effect is manual crop with image widget crop and crop api, second effect is automated crop and resize, and the last convert webp (or other).

The convert cancel the manual crop, I don't know if it's a core issue or crop api / image widget crop issue.

When delete core convert effect, the image is correct!

Comments

netsliver created an issue. See original summary.

larowlan’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)
Issue tags: -crop, -image convert +Bug Smash Initiative, +Needs issue summary update

Can you provide steps to reproduce starting from install Drupal

As well as expected result and actual result

netsliver’s picture

yes sorry,

install drupal + image_widget_crop + crop (api)

image style config with convert :

uuid: 108ebef0-1354-4602-88bb-34d5021dbecc
langcode: fr
status: true
dependencies:
  config:
    - crop.type.my_image_style
  module:
    - crop
name: my_image_style
label: 'My Image Style'
effects:
  2adba9da-d808-42cc-bd24-906869684e98:
    uuid: 2adba9da-d808-42cc-bd24-906869684e98
    id: image_scale_and_crop
    weight: -9
    data:
      width: 640
      height: 450
      anchor: center-center
  43d4d9c9-c87d-40a1-aeb0-d7628003290c:
    uuid: 43d4d9c9-c87d-40a1-aeb0-d7628003290c
    id: crop_crop
    weight: -10
    data:
      crop_type: my_image_style
  058f3348-a72b-4798-b264-70bf230543c8:
    uuid: 058f3348-a72b-4798-b264-70bf230543c8
    id: image_convert
    weight: 3
    data:
      extension: webp
pipeline: ''

image style config without convert :

uuid: 108ebef0-1354-4602-88bb-34d5021dbecc
langcode: fr
status: true
dependencies:
  config:
    - crop.type.my_image_style
  module:
    - crop
name: my_image_style
label: 'My Image Style'
effects:
  2adba9da-d808-42cc-bd24-906869684e98:
    uuid: 2adba9da-d808-42cc-bd24-906869684e98
    id: image_scale_and_crop
    weight: -9
    data:
      width: 640
      height: 450
      anchor: center-center
  43d4d9c9-c87d-40a1-aeb0-d7628003290c:
    uuid: 43d4d9c9-c87d-40a1-aeb0-d7628003290c
    id: crop_crop
    weight: -10
    data:
      crop_type: my_image_style
pipeline: ''

crop config :

uuid: fa087411-39fa-4cf3-910c-a562847bde07
langcode: fr
status: true
dependencies: {  }
label: 'My Image Style Crop'
id: my_image_style
description: ''
aspect_ratio: '640:450'
soft_limit_width: 640
soft_limit_height: 450
hard_limit_width: null
hard_limit_height: null

create content like article with image with in display form "Image Widget Crop" widget
crop the image uploaded
the final result is not the same with the convert core system, the crop is resetting by the convert

larowlan’s picture

Does it make a difference if you do the convert first?

netsliver’s picture

No, I tested this option, I also said to myself that it could work.

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

It has been more than two months without a reply to this issue. I am closing it as outdated. If there is new information, please comment. You can reopen this.

noregrebt’s picture

I am also experiencing this issue and this is the only mention of it I can find. Has there been any solution found?

noregrebt’s picture

Status: Closed (outdated) » Active
noregrebt’s picture

Things I have tried for troubleshooting:

1. Change the order when the crop occurs
2. Switched from GD2 to ImageMagick
3. Tried different file types to convert to

szy’s picture

The mention about the problem in the Crop API issue:

https://www.drupal.org/project/crop/issues/3293782

Szy.

Version: 9.3.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture

I am closing this support request because the related issue in the Crop API project has been fixed. Also, there is no clear indication here that this is a bug in core, as said in the issue summary.

If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue starting from "Install Drupal core". If you can't open this issue, create a new one and reference this one.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.