Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request. Image Ratio #1163

Open
rallek opened this issue Nov 12, 2017 · 4 comments
Open

Feature request. Image Ratio #1163

rallek opened this issue Nov 12, 2017 · 4 comments

Comments

@rallek
Copy link

rallek commented Nov 12, 2017

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.

@Guite Guite self-assigned this Nov 13, 2017
@Guite Guite added this to the 1.1.0 milestone Nov 13, 2017
@Guite
Copy link
Owner

Guite commented Nov 13, 2017

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
Copy link
Owner

Guite commented Nov 13, 2017

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 Guite reopened this Nov 13, 2017
@Guite
Copy link
Owner

Guite commented Nov 13, 2017

Postponed. Refs #122

@Guite Guite modified the milestones: 1.1.0, Future Nov 13, 2017
@Guite
Copy link
Owner

Guite commented Aug 19, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants