Matthias Müller
Matthias Müller
Hi @philipmarnef That's not easily possible atm. You could check the field value for empty and then read the blueprint to get the ratio and crop the image with that...
If nothing was set from the panel, what would you expect from the fieldmethod / how would you use the native crop method?
Ok, that is possible. ```php $image = $imagefield->toImage(); if ($image->getClip() !== null) { echo $image->clip(); } else { echo $image->crop(600, 400); } ``` It does not solve your initial question...
Thank you @afbora for the feature request. I am not sure I understand what you are asking for. Is it a fixed size clip area?
Ah I get it. You want to be able to modify the clip area in the panel based on form inputs. Good idea.
That's fine ;-) To set several images at the same width/height you can use the same values for max/min on width and height. But for now you'll have to accept...
Hi @tpinne Can you please provide an example blueprint/code snippet which shows the problem? I am not able to reproduce it.
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...
Nice, it works. Unfortunately there's no easy access to views yet. I use a hacky way via router to change methods in the views: ```javascript this.$router.options.routes.find(route => route.name === "PageFile").component...
I like the idea and it is one way to do it. Extending the Section itself could be another way. I changed the accept property to an array. It seems...