Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: ImageMagic (mogrify) and Magick.NET - JPG is edged instead rounded (AdaptiveResize)

$
0
0
dlemstra wrote:
The command '-resize 115' translates to Resize(115,0).
Thats a little bitfaulty for me.

Using
horizontal.Resize(115, 0);
(or 163 instead 0)

That's the result.

Example with Magick.NET

The microsoft preview pdf above works, correct. :O
But if I'm using another "simple" MS Word PDF with a little sentence i've got black screen.

Why? ...

Edit 1:
Getting error:
>mogrify.exe -resize 115 -quality 100 -format jpg "*.pdf[0]"
   **** Warning:  An error occurred while reading an XREF table.
   **** The file has been damaged.  This may have been caused
   **** by a problem while converting or transfering the file.
   **** Ghostscript will attempt to recover the data.

   **** This file had errors that were repaired or ignored.
   **** The file was produced by:
   **** >>>> Microsoft? Word 2013 <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.
How i can use Magick.NET with Ghostscript?
-> I'll google it.

Edit 2:
Ah, if i use mogrify to convert pdf to jpg first and then jpg to jpg (resized) it works.
mogrify.exe -format jpg "*.pdf[0]"
mogrify.exe -resize 115 -quality 100 -format jpg "*.jpg"

Viewing all articles
Browse latest Browse all 3693

Trending Articles