MozJPEG chroma subsampling and quality (#235)

* Adding chroma subsampling for mozjpeg

* Adding separate chroma quality.

* Preact sometimes removes the inline styles, this fixes it.

* Simplifying chroma subsample

* Adding comments
This commit is contained in:
Jake Archibald
2018-11-06 13:46:52 +00:00
committed by GitHub
parent e572b853e2
commit f396a5b784
8 changed files with 114 additions and 20 deletions

View File

@@ -57,6 +57,8 @@ class RangeInputElement extends HTMLElement {
this.insertBefore(this._input, this.firstChild);
this._valueDisplay = this.querySelector('.' + style.valueDisplay) as HTMLDivElement;
// Set inline styles (this is useful when used with frameworks which might clear inline styles)
this._update();
}
get labelPrecision(): string {