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

Introduce a flexible way to tie in parameter constraints #8

Open
Dynom opened this issue Apr 29, 2018 · 0 comments
Open

Introduce a flexible way to tie in parameter constraints #8

Dynom opened this issue Apr 29, 2018 · 0 comments

Comments

@Dynom
Copy link
Owner

Dynom commented Apr 29, 2018

It's still quite trivial to abuse Imaginary with ideas like:

for width in $(seq 1 1000); do
  curl 'http://localhost:9000/?url=foo&width='${width};
done

If the result is proxied by a CDN, this results not only in a lot of computation time, but also quite a bit of storage costs. By adding a way to add constraints we can limit the amount of variations.

Some ideas:

  • Limit to specific aspect-ratios
  • Limit ranges 500 < width && width < 1000
  • ...
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

1 participant