magick-rust/src
Sindre Ilebekk Johansen d5fe6f95cf Fix exporting pdf->jpeg for multi-page pdf
When trying to convert a multi-page pdf to jpeg i got a pdf file
instead of a jpeg file. I figured that the pdf that worked was
a one-page pdf and the pdf that did not work was a two-page pdf.

My theory was that the two pages was loaded as to images in the
wand and that the format was set on the first page and it exported
the second page. And since the second page had the old format, it
was exported as a pdf.

Resetting the page iterator before exporting the image fixed the
bug, and the multi-page pdf was exported as a jpeg. The image that
was exported was just the first page, but it works for my usage.
2018-03-27 15:47:54 +02:00
..
wand Fix exporting pdf->jpeg for multi-page pdf 2018-03-27 15:47:54 +02:00
conversions.rs Use the rust-bindgen crate properly 2017-04-08 16:03:58 -07:00
lib.rs add color-related getters and mutations 2018-01-03 17:04:45 +07:00