Merge pull request #35 from sindreij/fix-multi-page-pdf
Fix exporting pdf->jpeg for multi-page pdf
This commit is contained in:
commit
2ba8a3d0d0
|
@ -307,8 +307,8 @@ impl MagickWand {
|
|||
let c_format = CString::new(format).unwrap();
|
||||
let mut length: size_t = 0;
|
||||
let blob = unsafe {
|
||||
bindings::MagickSetImageFormat(self.wand, c_format.as_ptr());
|
||||
bindings::MagickResetIterator(self.wand);
|
||||
bindings::MagickSetImageFormat(self.wand, c_format.as_ptr());
|
||||
bindings::MagickGetImageBlob(self.wand, &mut length)
|
||||
};
|
||||
let mut bytes = Vec::with_capacity(length as usize);
|
||||
|
|
Loading…
Reference in a new issue