MostGenerator
MostGenerator copied to clipboard
Feature request. Image Ratio
No idea if the Generator is able to deliver another cool feature. Here my wish:
I want to have a function which is offering an online cuting of the uploaded image.
e.G. if only min ratio is 3 and the (additional) checkbox
cut after upload
is checked the image is stored in the given ratio after selecting the right cut.
Imagine do have this option somehow. But no idea if this is also possible by selecting via browser.
Hope you get my point.
There are cropper scripts like https://fengyuanchen.github.io/cropper/ available. Something like this is also contained in SimpleMedia. But these require that the image has already been uploaded and can afterwards crop a thumbnail which can then be saved in another step.
What you need would be such a function before the upload happens to satisfy the validation constraint. I fear this is not possible. Closing as "won't fix".
not possible
Actually there are approaches for doing that:
https://stackoverflow.com/questions/12728188/cropping-images-in-the-browser-before-the-upload https://stackoverflow.com/questions/23945494/use-html5-to-resize-an-image-before-upload
Basically these work using a canvas and dynamically generating a cropped image on the fly. I am still not sure whether it would make sense to include something like this into the generator.
Opinions @gfr @portugao ?
Postponed. Refs #122
https://ux.symfony.com/cropperjs