To me it looks like the problem is that you copy the image but the magicconverter works on the original including the undoadapter of the original KisImage * img = new KisImage(*output->currentImage()); Q_CHECK_PTR(img); KisImageMagickConverter ib(output, output->undoAdapter()); img->flatten(); -- best regards / venlig hilsen Casper Boemann