New Post: Increase DPI from 72 to 300 does not work
The GIF format does not support a DPI. You can set it but it is ignored by the GIF encoder.
View ArticleNew Post: Increase DPI from 72 to 300 does not work
So how do I do it? Should I first convert GIF to JPEG, would that help? We don't care the format, we just want the density.
View ArticleNew Post: Increase DPI from 72 to 300 does not work
I converted it to JPG, and save it. I then edit the JPG copy, and I tried the code at the top of this post on that test image, and it had a huge white border. So I realize I must resize it. I then I...
View ArticleNew Post: Pixelcollection changed - no X,Y, width, height available
Hello, since WriteablePixelcollection / PixelCollection is replaced by the new PicelCollection implementation, i can not use a defined area like before. Example before: PixelCollection...
View ArticleNew Post: Increase DPI from 72 to 300 does not work
Why do you need to resize and resample the image? This is probably what is messing up your image. Just setting the density should be enough.
View ArticleNew Post: Pixelcollection changed - no X,Y, width, height available
The PixelCollection class has a GetArea and SetArea method. Does that suit your needs?
View ArticleNew Post: FileSize zero after Blur and ReduceNoise
Doing some discovery work. Querying FileSize for an image, receiving expected size. Then calling Blur (or ReduceNoise) for the image, and again query FileSize. Always receiving zero for FileSize after...
View ArticleNew Post: FileSize zero after Blur and ReduceNoise
The FileSize property is only there to get the original file size. You will need to save the image to get the new file size.
View ArticleNew Post: Increase DPI from 72 to 300 does not work
Requirements of the marketing department. The density must be 300 DPI. The size must be 2.13 inches by 2.5 inches. So how do I properly resize it, after changing the density, and not make it blurry.
View ArticleNew Post: Increase DPI from 72 to 300 does not work
Maybe I should add a new overload for the Resample method:using (MagickImage image = new MagickImage("yourfile.jpg")) { Density density = new Density(300, DensityUnit.PixelsPerInch); double width =...
View ArticleNew Post: Increase DPI from 72 to 300 does not work
Based on your commends, I am assuming these are proposals, and not working solutions, correct? Whichever is easier for you is great. My market department has been bitching at me about this for over a...
View ArticleNew Post: Pixelcollection changed - no X,Y, width, height available
Due to your message I have also created this issue: https://github.com/dlemstra/Magick.NET/issues/37. Will try to add this before the next release. Not sure if you need this but just wanted to tell you...
View ArticleNew Post: Increase DPI from 72 to 300 does not work
I decided to add ToGeometry to the Density class. Below are some examples of how you could use this. Density density = new Density(300, DensityUnit.PixelsPerCentimeter); MagickGeometry geometry =...
View ArticleNew Post: Increase DPI from 72 to 300 does not work
Thanks. Where would I get this? I do not see any new uploads since 1/15?
View ArticleNew Post: Increase DPI from 72 to 300 does not work
You will need to wait till I publish the next release. Will try to do that this weekend.
View ArticleNew Post: Binarizing an image with magick.net
I'm having trouble figuring out how to binarize an image for OCR with magick.net Im currently converting the image to greyscale and then normalizing but im not sure how to convert the colors to black...
View ArticleNew Post: Binarizing an image with magick.net
The -colors option has a completely different name in the MagickImage class. It will call the quantize method. Your command translates to this: image.Quantize(new QuantizeSettings() { ColorSpace =...
View ArticleNew Post: Evaluate-sequence
I'm embarrassed to show my attempt at converting this. I'm having trouble with the evaluate-sequence part. I'm reading and writing a PDF. Would someone be so kind in showing the best way to do this as...
View ArticleNew Post: Evaluate-sequence
It looks like it was an error on my part; poor naming of variables - I was referencing the wrong MagickImage. I seem to have the Evaluate working correctly now.
View Article