MostGenerator icon indicating copy to clipboard operation
MostGenerator copied to clipboard

Feature request. Image Ratio

Open rallek opened this issue 7 years ago • 4 comments

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. grafik 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.

rallek avatar Nov 12 '17 20:11 rallek

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".

Guite avatar Nov 13 '17 07:11 Guite

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 ?

Guite avatar Nov 13 '17 07:11 Guite

Postponed. Refs #122

Guite avatar Nov 13 '17 10:11 Guite

https://ux.symfony.com/cropperjs

Guite avatar Aug 19 '22 09:08 Guite