rflynn / imgmin

Lossy image optimization
MIT License
650 stars 32 forks source link

Impose a minimum limit to amount of steps of 2 #23

Closed Tenzer closed 11 years ago

Tenzer commented 11 years ago

If imgmin is ran with max steps set to either 0 or 1, it will either fail with a cryptic error message (if 0), or just don't produce anything (if 1), so it makes sense to impose a lower limit of 2 steps.