imitating the -density operator
Posted: 2008-03-02T02:36:47-07:00
I got a question from user which I am unable to answer without diving into the ImageMagick sources:
"Using the console typing: “convert -density 300×300 /home/timo/test.pdf[1] test.jpg” leads to an internal rendering process that fetches the informations (vectors, fonts, pictures etc.) with 300dpi. How is this possible with IMagick without a loss of quality?"
I thought roughly the same in MagickWand would be:
Is that correct ?
"Using the console typing: “convert -density 300×300 /home/timo/test.pdf[1] test.jpg” leads to an internal rendering process that fetches the informations (vectors, fonts, pictures etc.) with 300dpi. How is this possible with IMagick without a loss of quality?"
I thought roughly the same in MagickWand would be:
Code: Select all
MagickWand *wand = NewMagickWand();
MagickSetResolution( wand, 300, 300 );
MagickReadImage( wand, "test.pdf" );