New Post: Detect best save format PNG or JPG
The image will be used for web viewing. I was hoping the pure vector files and clip art could be saved as PNG, Photos as JPG. If the user uploaded a SVG that has an embedded image then i guess JPG...
View ArticleNew Post: Detect best save format PNG or JPG
You can always get the type of the image with the Format property of a MagickImage. But you cannot detect if an SVG file has an embedded image without parsing the xml of that file and Magick.NET cannot...
View ArticleNew Post: Resized images appear different in chrome to windows photo viewer
Hi, Not really sure what the error is here, I suspect it may be a chrome issue, although it may be that the images produced has an error that can be fixed. Image screenshot shown side by side (Left...
View ArticleNew Post: Generic Resize Settings
Hi, I need a universal resize method that can handle any supported image type. The resize will always be a down sizing. I've already noticed that its important to set the the "Density" when loading the...
View ArticleNew Post: TotalColors changes after Resize
Hi, I assume this is a bug.... I have an AI file that has 59 Colors, after a Resize this will increase to 33702var settings = new MagickReadSettings {Density = new PointD(150)}; using (var image = new...
View ArticleNew Post: Resized images appear different in chrome to windows photo viewer
Your image is CMYK instead of sRGB and most browsers are not good at displaying CMYK images. You probably want to convert it to sRGB instead. The next version of Magick.NET will include a new method to...
View ArticleNew Post: Generic Resize Settings
You can use the ColorAlpha method to remove transparency from your image and make it white. But the current version of Magick.NET has a bug in ColorAlpha so you will have to wait for the next release...
View ArticleNew Post: TotalColors changes after Resize
Can you attach a link to your image? It is possible that this is happening because of resize. It will increase the number of colors but this sounds a bit excessive.
View ArticleNew Post: TotalColors changes after Resize
https://drive.google.com/file/d/0B2JSxc2d-7dNeGlWVm1kdkwxeWs/view?usp=sharing
View ArticleNew Post: EPS Resize Pixelated
Hi, I can't seem to get a decent resize result with a EPS file. var settings = new MagickReadSettings {Density = new PointD(150)}; using (var image = new MagickImage(FileName, settings)) {...
View ArticleNew Post: Lock/Unlock bits emulation
Hello I need to iterate through the all pixels of the image and make some actions with each pixel. For example:BitmapData data = image.LockBits(); int stride = data.Stride; int bpp = data.BitsPerPixel...
View ArticleNew Post: Lock/Unlock bits emulation
You are looking for the GetWritablePixels method of MagickImage. You will get a copy of the buffer in memory and not a pointer to the actual data. You might also want to took a look at the Evaluate...
View ArticleNew Post: strokeColor in Magick Script
Hello all, I just discovered Magick Script and i'm face an error with the property strokeColor in Draw. Here is my script<msl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
View ArticleNew Post: Error Reading Pages as PNGs with Byte Arrays
Hello again, I'm trying to initialize an image collection with the .Read overload using a byte array and settings object. The Format property is set to MagickFormat.Png. This works fine when I use the...
View ArticleNew Post: Memory allocation failed
It looks like reducing the number of colors only fails when there is a memory issue. Maybe you are processing to many images at the same time?
View ArticleNew Post: TotalColors changes after Resize
This looks correct. You should zoom in on the wheels of the bike and you can already see a lot of different colors because of the resize. And with the Histogram method you will be able to get a count...
View ArticleNew Post: EPS Resize Pixelated
Are you sure that your eps file has smooth lines? I don't have Photoshop here.
View ArticleNew Post: strokeColor in Magick Script
What is the error that you are receiving? You should specify the strokeColor before you draw the text if you want to change the...
View ArticleNew Post: Error Reading Pages as PNGs with Byte Arrays
Are you sure that you are providing a correct byte array? I just tried the following and it works without any problem:using (MagickImage image = new MagickImage("logo:")) { using (MemoryStream stream =...
View Article