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

New Post: Convert PDF to a set of PJPEG files

$
0
0
You should not write an jpeg and then open it to modify it, you will lose image information. With the following example I am able to create the page with a white background:
MagickReadSettings settings = new MagickReadSettings();
settings.Density = new MagickGeometry(144, 144);
settings.ColorSpace = ColorSpace.sRGB;

using (MagickImageCollection images = new MagickImageCollection())
{
  images.Read("29_6a Farmout Flyer April 2012.pdf", settings);
  
  MagickImage coverPage = images.First();
  coverPage.Resize(0, 500);
  coverPage.ColorAlpha(new MagickColor("#fff"));
  coverPage.Quality = 80;
  coverPage.Write("PJPEG:29_6a Farmout Flyer April 2012.jpg");
}

New Post: Convert PDF to a set of PJPEG files

$
0
0
Tried your solution, but result image is not PJPEG.
MagickReadSettings settings = new MagickReadSettings();

settings.Density = new MagickGeometry(144, 144);

settings.ColorSpace = ColorSpace.sRGB;

using (MagickImageCollection images = new MagickImageCollection())
{
    images.Read(fileName + "[0]", settings);

    MagickImage coverPage = images.First();
    coverPage.Format = MagickFormat.Pjpeg;
    coverPage.Resize(0, 500);
    coverPage.ColorAlpha(new MagickColor("#fff"));
    coverPage.Quality = 80;
    coverPage.Write(WritePath);
}
i'm using http://regex.info/exif.cgi to read EXIF info

New Post: Web Application Difficulties

$
0
0
Hi Team

I am also facing the same problem of "Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies. The specified module could not be found".

My system is of 32 bits. I have downloaded the dlls "Magick.NET-6.8.6.601-Q8-x86-net40-client" and "Magick.NET-6.8.6.601-Q16-x86-net40-client" and added as a reference in my project but same error. I have gone through some of the solutions but not being able to still. I have added the dll in bin/release as well but not able to figure out the problem as this what we normally do we download and added the dll's as a reference in our project and use the methods.

I am using vs2010.

Kindly help. Would you mind providing a sample app in which this dll is being used to resize the animated gif image file.

Thanks in advance

New Post: Web Application Difficulties

$
0
0
Did you install Visual C++ Redistributable for Visual Studio as described here: https://magick.codeplex.com/documentation? I will start working on the sample package for Magick.NET this weekend. I will include resizing an animated gif as one of the examples.

New Post: Convert PDF to a set of PJPEG files

$
0
0
Irfanview (yes I still need to make MagickViewer) is reporting this image as a progressive jpeg: JPEG, progressive, quality: 80.

And I don'tget a exif profile from the image, profile is null in the following example.
using (MagickImage image = new MagickImage("29_6a Farmout Flyer April 2012.jpg"))
{
   ExifProfile profile = image.GetExifProfile();                    
}

New Post: Web Application Difficulties

$
0
0
Hi dlemstra hope you are doing good!
Thanks for your quick asssistance toward my issue. I have installed the vs c++ pack and its working.

A small concern I am using below code to resize .gif file without losing its animation part.
byte[] getResizedImage(String path, int width, int height)
        {
            WebClient wc = new WebClient();
            System.IO.Stream stream = wc.OpenRead(path);
            System.Drawing.Bitmap imgIn = new System.Drawing.Bitmap(stream);
            Image thumb = imgIn.GetThumbnailImage(200, 90, () => false, IntPtr.Zero);
            System.IO.MemoryStream outStream = new System.IO.MemoryStream();

            using (MagickImageCollection input = new MagickImageCollection(stream))/__/Here when i pass stream object it gives error "Magick: zero-length blob not permitted `' @ error/blob.c/BlobToImage/345"__

using (MagickImageCollection input = new MagickImageCollection(path))//__but when i pass the direct path then it works properly__ . Would you mind explain me about it. If i want to pass the stream how can i do that.
            {
                using (MagickImageCollection output = new MagickImageCollection())
                {
                    for (int i = 0; i < input.Count; i++)
                    {
                        MagickImage image = input[i];
                        image.Resize(200,90);
                        output.Add(image);
                    }

                    output.Write(outStream);
                }
            }
 return outStream.ToArray();
}
And one more concern how to verify that if Visual C++ Redistributable for Visual Studio already installed on the system. Also after installing the same will it effect on the any other application developed in vs or any thing else. Why I am asking this because I have to install the same on the client server machine and there are many other major applications are running so I am concerned about it. I have a demo with client for this issue in IST 5pm so I have to make it working live on the from the client machine.

Thanks alot.

New Post: Web Application Difficulties

$
0
0
You are receiving that error message because you are trying to read from the same stream twice.
// First time
  System.Drawing.Bitmap imgIn = new System.Drawing.Bitmap(stream); 

  //Second time (Position is at end of file an will result in an error)using (MagickImageCollection input = new MagickImageCollection(stream)) 
Feel free to start a new topic when you have an other issue.

New Post: Web Application Difficulties

$
0
0
Thanks dlemstra.

I had one more concern that I has asked before
"And one more concern how to verify that if Visual C++ Redistributable for Visual Studio already installed on the system. Also after installing the same will it effect on the any other application developed in vs or any thing else. Why I am asking this because I have to install the same on the client server machine and there are many other major applications are running so I am concerned about it. I have a demo with client for this issue in IST 5pm so I have to make it working live on the from the client machine."

Would you mind telling me if there is any thing implementing the same on Client Server.

New Post: Web Application Difficulties

$
0
0
You can check if the Visual Studio C++ Redistributable for Visual Studio 2008 or 2012 is already installed from the Installed Programs under the control panel. I don't know if installing this can result in problems with other applications because I don't know these applications. I never had problems after installing it but I cannot guarantee that it will be the same for you. You might be lucky and already have the Visual Studio C++ Redistributable for Visual Studio 2008 on your system. That will work together with the .NET 2.0 version of Magick.NET.

New Post: Web Application Difficulties

$
0
0
Hi dlemstra

Thanks for quick assistance really appreciated.

I have one more query can I have the thumbnails of the .gif images without losing its animation please. Because some of the image may be big in size and while I am resizing them with my code not in the size I want. (aspect ratio).

Here I am sending you the real images I want to have the thumbnail of these images without losing animation if any one have .

http://speedy.sh/q3RG2/ActualImage.gif
http://speedy.sh/FDSRe/ActualIMageOutputafterResize.JPG
http://speedy.sh/pvCSX/I-want-the-same-size-of-all-images-after-resize-or-lil-more-but-not-more-than-this.JPG.

Thanks in advance.

New Post: Web Application Difficulties

$
0
0
Your link wants me install an executable and I don't really feel like doing that. You can contact me trough codeplex if you need more help.

New Post: Web Application Difficulties

$
0
0
Thanks
Do let me know how can i contact you on codeplex as I dint find way to. .
Also , Can I have the thumbnails of the .gif images without losing its animation please please.

New Post: Web Application Difficulties

$
0
0
There is a contact button on my profile page.

New Post: Composite ImageMagick equivalent in Magick.NET

$
0
0
Hello,

I try to port this command to Magick.NET :

convert myimage.jpg -set colorspace RGB
    ( -clone 0 -fill #ff0000 -colorize 100% )
    ( -clone 0 -colorspace gray -negate)
    -compose blend -define compose:args=100,0 -composite result.jpg
I try this :

//img is my original image
        MagickImage ret = img.Copy();

        MagickImage filter1 = img.Copy();

        filter1.Colorize(color, new Percentage(100));

        MagickImage filter2 = img.Copy();

        filter2.ColorSpace = ColorSpace.GRAY;
        filter2.Negate();
How to combine all of this to obtain the same result of ImageMagick command?

Thank you a lot ! :)

New Post: Composite ImageMagick equivalent in Magick.NET

$
0
0
At this moment it is not possible to set the 'compose:args=100,0'. I will have to submit a patch to ImageMagick to make this available in Magick++. The method you are looking for is img.Composite() but without the 'compose:args' setting the operator CompositeOperator.Blend does nothing.

New Post: Composite ImageMagick equivalent in Magick.NET

$
0
0
Good news !!!

Thanks a lot for your great job!

New Post: Composite ImageMagick equivalent in Magick.NET

$
0
0
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

New Post: Imagemagick for Windows 8 Metro and Windows Phone

$
0
0
Can we use magick.net for windows 8 apps and windows phone 8 apps? Has anyone tried to do that?

I am trying to make a simple photo editing app and I thought it would be great if imagemagick worked.

New Post: Imagemagick for Windows 8 Metro and Windows Phone

$
0
0
It looks like I have to compile the code with different options to get support for windows store apps. But I don't have windows 8 or a windows phone to test this. And it might not even be possible to get it to work.

New Post: Magick.Net Convert 10bit log dpx file to jpg

Viewing all 3693 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>