-
Notifications
You must be signed in to change notification settings - Fork 120
Description
Pimcore version
v11.5.3.2
Steps to reproduce
- Create editable with image.
- Add image to image field in editable.
- Right click on image and set an area from the image with the function "Select specific area of image".
- Preview of page shows the editable and image correctly with only the selected specific area.
- 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.