mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
Hide quantize options if original image. Fixes #120.
This commit is contained in:
@@ -112,6 +112,8 @@ export default class Options extends Component<Props, State> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={`${style.options}${className ? (' ' + className) : ''}`}>
|
<div class={`${style.options}${className ? (' ' + className) : ''}`}>
|
||||||
|
{encoderState.type !== 'identity' && (
|
||||||
|
<div>
|
||||||
<p>Quantization</p>
|
<p>Quantization</p>
|
||||||
<label>
|
<label>
|
||||||
<input
|
<input
|
||||||
@@ -129,6 +131,8 @@ export default class Options extends Component<Props, State> {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
<hr/>
|
<hr/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<label>
|
<label>
|
||||||
Mode:
|
Mode:
|
||||||
{encoderSupportMap ?
|
{encoderSupportMap ?
|
||||||
|
|||||||
Reference in New Issue
Block a user