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 (
|
||||
<div class={`${style.options}${className ? (' ' + className) : ''}`}>
|
||||
{encoderState.type !== 'identity' && (
|
||||
<div>
|
||||
<p>Quantization</p>
|
||||
<label>
|
||||
<input
|
||||
@@ -129,6 +131,8 @@ export default class Options extends Component<Props, State> {
|
||||
/>
|
||||
}
|
||||
<hr/>
|
||||
</div>
|
||||
)}
|
||||
<label>
|
||||
Mode:
|
||||
{encoderSupportMap ?
|
||||
|
||||
Reference in New Issue
Block a user