fix: crop to bbox doubles adjustment filters

This commit is contained in:
dunkeroni
2025-08-15 19:24:28 -04:00
committed by psychedelicious
parent cc72d8eab4
commit c661f86b34

View File

@@ -571,7 +571,7 @@ export abstract class CanvasEntityAdapterBase<T extends CanvasEntityState, U ext
cropToBbox = async (): Promise<ImageDTO> => {
const { rect } = this.manager.stateApi.getBbox();
const rasterizeResult = await withResultAsync(() =>
this.renderer.rasterize({ rect, replaceObjects: true, attrs: { opacity: 1 } })
this.renderer.rasterize({ rect, replaceObjects: true, attrs: { opacity: 1, filters: [] } })
);
if (rasterizeResult.isErr()) {
toast({ status: 'error', title: 'Failed to crop to bbox' });