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

KeepRatio option #10

Open
rklak opened this issue Sep 27, 2013 · 1 comment
Open

KeepRatio option #10

rklak opened this issue Sep 27, 2013 · 1 comment
Assignees

Comments

@rklak
Copy link

rklak commented Sep 27, 2013

Hi!

I have an idea of a new feature. I would like to achive this scenario:

I have a file with resoltuion 400x800 (px) f.ex. test.jpg. I would like to make a request to apophnia that will keep the ratio of a file, here's the example:

k - keep ratio

request: test_k300x400.jpg
expected: test.jpg with resolution 200x400

request: test_k100x50
expected: test.jpg with resolution 25x50

File: test.jpg with 300x200
request: test_k300x400.jpg
expected: test.jpg with resolution 300x200

request: test_k100x50
expected: test.jpg with resolution 75x50

File: test.jpg with 60x20
request: test_k300x400.jpg
expected: test.jpg with resolution 300x100 - it can be bigger... I dont care here

It will always keep the ratio. If an image is bigger than the request, then apophenia will response with smaller but it will keep the ratio so it wont go beyond the scope of request resolution.

Reason:
I upload many images to apophenia and want them to fit into some box. F.ex list of items in a shop.

What you think? the parametr letter can be different its only an example

Regards
R.

@ghost ghost assigned kristopolous Oct 14, 2013
@kristopolous
Copy link
Owner

ok. sure. sounds awesome.

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

No branches or pull requests

2 participants