Open tpinne opened 1 year ago
Hi @tpinne, thanks for the detail description. I am still unable to reproduce your issue.
The plugin does consider the image size, clip area size and clip area position for the created filename. An image bird.jpg
will be in your media folder like bird-2000x-clip318x635-0x299.jpg
(2000px width, clip area size 318x635px at position top 0px and left 299px)
Kirby: 3.7 Plugin: 3.2
I have several image clip fields in several blueprints. The problem exists everywhere, so I'm picking one example.
And I see now that this corresponds to my previous issue #23 which is based on the same problem. But noticed and described in another context.
The following field blueprint for example.
When I first set the crop area for a given image, then there will be generated several files inside the
.jobs
directory. At default directly for the panel preview in352x
,864x
and1408x
.At my screen resolution the
1408x
is directly generated as preview. Therefore the according job file gets deleted.If I view my content in the frontend where I request several versions with different widths for every requested width there will be a job file. Except for the one resolving for the current viewport. Which gets directly generated, therefore deleting the according job file. If I change my viewport the according image gets rendered and the job file deleted. And so on.
Here an example twig snippet.
So far, so good.
If I now change the crop area for that given image all currently existing job files for unrendered images get updated with the new crop information. But there will be no new job files for all image widths which already have a rendered image.
So that results at first, that I don't get an updated preview image for the new crop area in the panel. And in the frontend I also don't get updated images for every image width, which already has been previously requested. But for every not requested image I will get rendered images with the new crop area.
But as soon as all image widths are being generated and there are no job files left, there never will be new image versions with new crop areas. Only if I delete the corresponding image-folder, everything gets of course newly and correctly generated.
I'm still fairly new to Kirby so I'm still hoping I'm missing some basic Kirby concept here regarding media handling.