Keep resize enabled when cropping

This commit is contained in:
Jason Miller
2020-12-09 11:58:10 -05:00
parent dbd80f15eb
commit 60b79da936

View File

@@ -465,7 +465,6 @@ export default class Compress extends Component<Props, State> {
if (cropChanged) { if (cropChanged) {
const img = state.source?.decoded; const img = state.source?.decoded;
resizeSettings = { resizeSettings = {
enabled: false,
width: img ? img.width - crop.left - crop.right : undefined, width: img ? img.width - crop.left - crop.right : undefined,
height: img ? img.height - crop.top - crop.bottom : undefined, height: img ? img.height - crop.top - crop.bottom : undefined,
}; };