magick: reopen the image post MagickWriteImage

This commit is contained in:
Luna 2019-07-23 18:30:16 -03:00
parent c0b70a81b1
commit ff78044587

View file

@ -57,8 +57,9 @@ fn magickSave(image: *Image, wand: *mc.MagickWand) !void {
if (mc.MagickWriteImage(wand, c_tmpnam.ptr) != 1)
return error.MagickWriteFail;
try image.reopen(tmpnam);
std.debug.warn("OK\n");
try image.reopen(tmpnam);
}
/// Rotate the given image.