Replies: 2 comments 6 replies
-
The |
Beta Was this translation helpful? Give feedback.
1 reply
-
I really cannot help you without a complete example. The same code is being executing on the command line and in the library. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to replicate this command line in .net:
magick convert -units pixelsperinch -density 150 Filename.pdf[1] -strip
Filename_out.bmp
In particular the -strip part. Here's what I've got:
var _MagickReadSettings = new MagickReadSettings();
_MagickReadSettings.Density = new Density(150, DensityUnit.PixelsPerInch);
var img = new MagickImage("Filename.pdf[1]", _MagickReadSettings);
img.Strip();
img.Write(Filename_out.bmp);
I'm showing .bmp but tried other formats too.
After stripping with the command line version:
magick identify Filename_out.bmp
(returns nothing, as expected)
After stripping from .net version:
magick identify Filename_out.bmp
Returns:
Filename_out.bmp BMP 595x842 595x842+0+0 8-bit sRGB 1.91126MiB 0.000u 0:00.006
It seems like the Strip() part did nothing... I'm very new to ImageMagick so if someone could point me in the right direction on this I'd be very grateful :)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions