Skip to content

[Bug]: Editable image with user selected specific region not applied to image url received from GraphQL #997

@sm-item

Description

@sm-item

Pimcore version

v11.5.3.2

Steps to reproduce

  1. Create editable with image.
  2. Add image to image field in editable.
  3. Right click on image and set an area from the image with the function "Select specific area of image".
  4. Preview of page shows the editable and image correctly with only the selected specific area.
  5. Request the document with the editable and image information via GraphQL with e.g.:
query GetDocument {
  getDocument(id: 4404) {
    __typename
    ... on document_page {
        fullpath
        title
        description

        editables(getInheritedValues: true) {
          ... on document_editableImage {
            alt
            image {
              fullpath # url to image but not with selected specific area
              mimetype
              foo: fullpath(thumbnail: "foo-image") # url to thumbnail image but also not with selected specific area
            }
          }
        }
    }
  }
}

Code snippet used in the preview to get/show the image:
pimcore_image('foobar-image').thumbnail('foo-image').getFrontendPath()

Actual Behavior

Will receive the urls to the image with fullpath and the thumbnail fullpath, but the specific area selection is not applied.

URL for foo received by GraphQL:
[..]/thumbnails/_default_upload_bucket/644/image-thumb__644__foo-image/funny-image.80ef1cfe.jpg

The url to the image is as expected also different to the one which is shown over Pimcores preview:
URL received from the Pimcore preview:
[..]/thumbnails/_default_upload_bucket/644/image-thumb__644__foo-image_auto_b8d1ac8919c62ce241645269d23c09c0/funny-image.d6521fcf.jpg

Expected Behavior

The urls to the image with at least the thumbnail fullpath url should return the url to the image with the specific area selection is applied.

The received url would be likely the same as the preview uses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions