New Post: Padding out Thumbnails
You are looking for the Extent method:using (MagickImage image = new MagickImage(Color.Yellow, 600, 1000)) { image.Resize(100, 100); image.BackgroundColor = MagickColor.Transparent; image.Extent(100,...
View ArticleNew Post: Layers with distort perspective
It took me a while but I think I have a solution for you:// Magick.NET understands the ~ prefix.var first = new MagickImage(@"~\files\house.jpg"); var second = new MagickImage(@"~\files\monkey.jpg");...
View ArticleNew Post: Layers with distort perspective
Thank you so much man! 2 books from your gift list is on its way :)
View ArticleNew Post: Layers with distort perspective
Thank you very much. I send you a message through Codeplex, can you please reply the e-mail?
View ArticleNew Post: Possible issue writing to stream
Thank you very much. I was really sure that I tried that, Your documentation was very clear so I guess I didn't try it when I thought I did. Thanks again.
View ArticleNew Post: Using async/await to prevent MagickCacheErrorException
I have tried for each image in the listbox to doprivate void ExtractThumbnail() { Task.Factory.StartNew(() => { using (MagickImage image = new MagickImage(fullPath)) { image.Thumbnail(0, 100);...
View ArticleNew Post: Using async/await to prevent MagickCacheErrorException
How many images are you trying to load and did you change the ResourceLimits? What is the message in the MagickCacheErrorException? Does the image.ToImageSource() method not work for you or don't you...
View ArticleNew Post: Magick Script & Composite
Hi, in this exemple :<msl> <read> <virtualPixelMethod value=""Transparent""/> <backgroundColor value=""Transparent""/> <composite x=""0"" y=""0"" compose=""Darken"">...
View ArticleNew Post: Layers with distort perspective
Hi, Can we do the same thing with a script ?// Magick.NET understands the ~ prefix. var first = new MagickImage(@"~\files\house.jpg"); var second = new MagickImage(@"~\files\monkey.jpg"); double[] args...
View ArticleNew Post: .tif Format?
I noticed that .tif (three letter designation) is not listed under the MagickFormat list. There's only .tiff(four letter designation), but there is .jpg and .jpeg. Is there a specific reason for this?
View ArticleNew Post: .tif Format?
The official name is Tagged Image File Format. ImageMagick/Magick.NET can load .tif because it is registered as a 'hidden alias'. I have not added the 'hidden aliases' to MagickFormat. I will add it to...
View ArticleNew Post: Magick Script & Composite
I forgot to add the recently added colorprofiles to the MagickScript enumeration. I will fix this in the next release of Magick.NET. What do you mean by extend the second image, do you want to do...
View ArticleNew Post: Using async/await to prevent MagickCacheErrorException
It looks like several magick huge tempfiles (up to 1GB) filled up HDD and the error was that there was not enough space. I erased all those files and now there are no errors any more even with...
View ArticleNew Post: Using async/await to prevent MagickCacheErrorException
You don't have to use ResourceLimits, I was just wondering if you did. Magick.NET can leave tempfiles if it exists abnormally (for example stopping the debugger in the middle of execution). Magick.NET...
View ArticleNew Post: Layers with distort perspective
No you can't. MagickScript does not support if statements. I might add this in the future. And the .Distort method is also not supported at the moment.
View ArticleNew Post: Using async/await to prevent MagickCacheErrorException
Is it possible to create separate thread pool for this operation only? Maybe it would be enough to have one? How CPU intensive is loading image and resizing it; does is make sense to have threads?
View ArticleNew Post: Using async/await to prevent MagickCacheErrorException
It really depends on the type of image how CPU intensive reading your image is. And the more pixels you have the longer it takes to resize. It does make sense to have threads but maybe you should use...
View ArticleNew Post: Magick Script & Composite
Like This :<msl> <read> <composite x="0" y="0" compose="Darken"> <image id="mask"> <extent width="100" height="100" gravity="Center" backgroundColor="#fff" />...
View ArticleNew Post: Layers with distort perspective
Can you add Distort method please ? Best regards
View Article