mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
Make vector the default resize type for vector images
This commit is contained in:
@@ -604,6 +604,7 @@ export default class Compress extends Component<Props, State> {
|
|||||||
const resizeState: Partial<ProcessorState['resize']> = {
|
const resizeState: Partial<ProcessorState['resize']> = {
|
||||||
width: decoded.width,
|
width: decoded.width,
|
||||||
height: decoded.height,
|
height: decoded.height,
|
||||||
|
method: vectorImage ? 'vector' : 'lanczos3',
|
||||||
// Disable resizing, to make it clearer to the user that something changed here
|
// Disable resizing, to make it clearer to the user that something changed here
|
||||||
enabled: false,
|
enabled: false,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user