Fix clamping. Fixes #782. Fixes #711.
Fix clamping. Fixes #782. Fixes #711.

GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh