Commit 24e4f689 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

* mln/io/magick/load.hh: set minimum resolution for PDF files to 300DPI.

parent 04aef4bf
2010-05-18 Guillaume Lazzara <z@lrde.epita.fr>
* mln/io/magick/load.hh: set minimum resolution for PDF files to
300DPI.
2010-06-03 Guillaume Lazzara <z@lrde.epita.fr>
 
Add a function to convert qt::rgb32 values to int_u8.
......@@ -123,7 +123,17 @@ namespace mln
// abort();
//}
Magick::Image im_file(filename);
Magick::Image im_file;
im_file.ping(filename);
// Force a minimum resolution of 300DPI for PDF document.
if (im_file.magick() == "PDF"
&& (im_file.xResolution() < 300 || im_file.yResolution() < 300))
im_file.density(Magick::Geometry(300, 300));
im_file.read(filename);
im_file.modifyImage();
im_file.type(Magick::TrueColorType);
int columns = im_file.columns();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment