magick: reopen the image post MagickWriteImage
This commit is contained in:
parent
c0b70a81b1
commit
ff78044587
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue