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

New Post: Resizing image without keeping aspet ratio

$
0
0
Thanks for the information :)
But in the project, i have to do this before for different reasons, but maybe in this case i shouldn't use the result and use the height = 0.
Anyway i finally found a problem in my ratio method, i made a "round shortcut" and it resulted with bad height round.. It explains the difference between me and Magick :)

Thx a lot for your answers.

New Post: Can we Bin Deploy the library without installing anything on server?

$
0
0
Is there a way to upload only the dll to web server without installing any exe?

New Post: Can we Bin Deploy the library without installing anything on server?

$
0
0
You need to install Visual C++ Redistributable for Visual Studio 2012 (x86 or x64) on your webserver. And if you want to read pdf/eps you also need to install GhostScript.

New Post: Can we Bin Deploy the library without installing anything on server?

$
0
0
Is you have any working sample image re-sizing in ASP.NET 4.0 or 4.5. I have installed C++ Redistributable for Visual Studio 2012 (x86 or x64) and then installed https://nuget.org/packages/Magick.NET-Q16-x64/ package but i am getting,

Could not load file or assembly 'Magick.NET' or one of its dependencies. An attempt was made to load a program with an incorrect format.

If I make Enable 32-bit Application False(Yes I have set this False) then I will get,

[SEHException (0x80004005): External component has thrown an exception.]
Magick.Image.{ctor}(Image* ) +0
ImageMagick.MagickImage..ctor(String fileName) +63
ASPNET4Sample.WebForm1.Page_Load(Object sender, EventArgs e) in c:\Users\user\Documents\Visual Studio 2012\Projects\ASPNET4Sample\ASPNET4Sample\WebForm1.aspx.cs:18
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

Here is my code,
    protected void Application_Start(object sender, EventArgs e)
    {
        MagickNET.Initialize(AppDomain.CurrentDomain.BaseDirectory+"Bin\\ImageMagick");
    }
protected void Page_Load(object sender, EventArgs e)
    {
        if (File.Exists(Server.MapPath("~/maps.png")))
        {
            var image = new MagickImage(Server.MapPath("~/maps.png"));
            image.Resize(50, 50);
        }
    }

New Post: Can we Bin Deploy the library without installing anything on server?

$
0
0
It looks like ImageMagick cannot find the directory that contains the ImageMagick files. Did you try calling MagickNET.Initialize without any parameters? And can you temporary move the method call to your Page_Load? Application_Start only happens once so you might have missed the exception.

New Post: Can we Bin Deploy the library without installing anything on server?

$
0
0
Did you try calling MagickNET.Initialize without any parameters? And can you temporary move the method call to your Page_Load?
Still same error. But some time I get M_MOD_RL_tile_.dll is not found error.
I noticed your vote on the 'Include all files in the dll' issue. I managed to get it to work and the next release will only contain the xml files from imagemagick and not the dll's. Maybe that will resolve your problems.
Note sure

New Post: Can we Bin Deploy the library without installing anything on server?

$
0
0
Does the file 'IM_MOD_RL_tile_.dll' exist in your ImageMagick folder in your bin directory?

New Post: Can we Bin Deploy the library without installing anything on server?

$
0
0
No, it doesn't. BTW, you are doing good job but I think you need to make sample applications available. Not all users(like me) will try very hard to make a simple thing work. Users will simply switch to another library. I appreciate your work but you have to work hard to make it work easily for novice users.

New Post: Can we Bin Deploy the library without installing anything on server?

$
0
0
I have to agree with you that it is not that easy to get this library to work for a novice user. I hope that with a static build using this library will become a lot easier. It is also a good idea to create some sample applications. I will add a NuGet package that contains examples for a web and a console application.

New Post: Can we Bin Deploy the library without installing anything on server?

$
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: Can we Bin Deploy the library without installing anything on server?

New Post: Ushort Array Channels from WritablePixelCollection

$
0
0
I fetch the UInt16 array from WritablePixelCollection:
WritablePixelCollection pixels = magickImg.GetWritablePixels();
UInt16[] pixelArray = pixels.GetValues();
My image is a 16-bit grayscale so I expect the array will contain one channel but it hold R,G,B,A channels with repeated grayscale values(except the alpha channel that’s 0). Maybe it’s normal (for example the core handle every image as RGBA) and not a big problem but large grayscale images can consume a lot of resource.

New Post: Ushort Array Channels from WritablePixelCollection

$
0
0
That is how ImageMagick works internally but this will change in ImageMagick 7. In the porting guide (http://www.imagemagick.org/script/porting.php) the following is written:
Grayscale images consume one pixel channel in ImageMagick version 7. To process RGB, set the colorspace to RGB (e.g. -colorspace rgb).

New Post: Working with channels

$
0
0
The Separate method will return an IEnumerable<MagickImage> in the next release. It no longer modifies the current image.

New Post: Working with channels

$
0
0
I just repeat myself, great project!

New Post: Ushort Array Channels from WritablePixelCollection

New Post: Feature request: Histogram Matching

$
0
0
I first use Image Magick to auto-rotate my scanned images, then I realized that I can do much more whit it. I was trying to process Landsat Satellite images and it worked.

Basic Landsat 8 Pansharpening workflow:
  1. combine three Landsat bands (usually 2,3,4) to RGB image
  2. change the Color Space to LAB(or a similar one, with one channel representing light(gray) values)
  3. scale image to 200%
  4. separate channels
  5. replace the Lightness channel with the Landsat Panchromatic Band (in Landsat 8 it’s Band 8)
  6. recombine channels to previous Color Space
  7. change the Color Space back to RGB
Consequence: The final product resolution is 15m, the original was 30m.

Due to the different sensor and/or spectral characteristic of the bands (the panchromatic band tend to be a bit darker) it is suggested to do a histogram match between Lightness channel and Band 8 in step 5.

In Landsat 7 the difference was so big that it was nearly impossible to reproduce the original RGB image. In Landsat 8 the difference is much smaller so a simple histogram match can reproduce the original image with just a little shift in the overall colors. (no more need to hire a magician to do some “Magick”)

I found a script already doing this in the Image Magick shell version:
http://www.fmwconcepts.com/imagemagick/histmatch/index.php

I would be great if this function is implemented in Magick.NET but I don’t know how useful it would be in general image processing tasks.

New Post: Feature request: Histogram Matching

$
0
0
Maybe you should create a MagickScript file for this operation? You can find information about MagickScript here: https://magick.codeplex.com/wikipage?title=MagickScript&referringTitle=Documentation. I am thinking about including some default scripts in Magick.NET and this could be one of them. It might be possible that you cannot perform all the actions at this moment. If you can tell me what is not possible at this moment I will try to make it possible :) Feel free to contact me trough codeplex if you want to.

New Post: Working with channels

New Post: Feature request: Histogram Matching

$
0
0
I don't realize that it can be done with scripts. I will try it. Thanks!
Viewing all 3693 articles
Browse latest View live


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