Skip to content

Introduce a flexible way to tie in parameter constraints #8

@Dynom

Description

@Dynom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions