I hope someone has an idea why the cropped images from the extra Image+ are not stored or where they are stored.
It’s possibile to crop the image in the TV - and the cropped version looks fine. While cropping and after saving the resource with the image+ TV. The cropped image stays still cropped.
In the file directory assets/components/phpthumbof/cache there are only the full sized images, but with a differnt file name (the behaviour of the cropped image).
Calling the pthumb with the sizes works also in the chunk - but with the full image from the assets folder.
I have no idea where the cropped images are stored and how to call them in the right way.
Maybe someone knows this issue?
Cheers, Gudrun
Environment
MODX3 - PHP 8.2 - Image+ 2.9.4 - pthumb
image+ in a getResource all with the described way from the documentation website of the extra.
The manually call - for example - [pthumb? &input=assets/images/someimage.jpg &options=sx=20&sy=30&sw=400&sh=300]]
in a resource with a defined image just shows the path, but not the image itself.
The call of the chunk in my getResource chunk is
[[ImagePlus?
&tvname=imageplus
&type=tpl
&docid=[[+id]]
&tpl=IntroImg
]]
And the image template “IntroImg” with the aspect ratio for the image is ok, for example w300&h200. But the image within is the full size image.
IntroImg= img src=“[[+source.src:pthumb=w=300&h=200]]”
I deinstalled the extras of pthumb and image+. Cleared all the cache - core and the image caches.
I installed first pthumb and than image+. In a fresh resource I choose a picture from the source where my blogpost pictures are stored.
The cropping in the TV looks fine - but in the cache directory of pThumb there is only high compressed version of the original image without the cropping.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.