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