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

New Post: Find subimage

$
0
0
Hi!

How can i find subimage with C# api?.
If i use image.Compare, "size differs" exception occurred.
MI version 6.8

The source code is following:
var currentWebpageScreenshot = webPage.TakeScreenshotAsFile();
using (var imageA = new MagickImage(currentWebpageScreenshot))
using (var imageB = new MagickImage(screenshotFile))
using (var differenceImage = new MagickImage())
{
    var comparisonResult = imageA.Compare(imageB, Metric.RootMeanSquareError, differenceImage); // Exception here
    // some logic
}
Thanks in advance.

New Post: Find subimage

$
0
0
At this moment it is not possible to do a sub-image comparison. I would have to create an overload that will allow you to specify the starting point to start the comparison from.

New Post: Find subimage

$
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 Script

New Post: ImageMagick Script

$
0
0
Fred uses shell scripts to perform operations on images and this will allow you to use variables. MagickScript does not have support for variables yet, so the operations you can perform with MagickScript are limited. I might add support for variables in the future.

New Post: XMP bag

$
0
0
Hello!

This code for get the metadata from image:
using (MagickImage image = new MagickImage(srcPath.jpg))
            {
                image.Write(dstPath.xmp); // xmp
            }
rise the exeption: Magick: no APP1 data is available `dstPath.xmp' @ error/meta.c/WriteMETAImage/2367

on the simple various images (jpg, tiff).

Is it bag?

Version: Magick.NET-6.8.7.502-Q16-x86-net20

New Post: XMP bag

$
0
0
What kind of metadata are you trying to extract? There are various methods in MagickImage to read metadata:
using (MagickImage image = new MagickImage("srcPath.jpg"))
{
  image.Get8BimProfile();
  image.GetExifProfile();
  image.GetIptcProfile();
}
Can you post a sample image I can use for testing?

New Post: XMP bag

$
0
0
Yes. I try get dimension, size, color space, width, height, credentials etc.

Image

It is necessary not just to read the metadata, but write a XMP file with them.

New Post: Does Magick.Net have methods for all convert command line transformations?

$
0
0
Hi,

I'm new to Magick.Net.
Does Magick.Net have methods for all convert command line transformations?

Can this following example be implemented with Magick.Net:

convert
 ( xc:red xc:blue +append ) \
  \( xc:yellow xc:cyan +append \) -append \
  -size 100x100 xc: +swap   -interpolate Catrom \
  -fx 'v.p{i/(w-1),j/(h-1)}'    interpolate_catrom.jpg

Thanks

New Post: Does Magick.Net have methods for all convert command line transformations?

$
0
0
I try to implement all features that are available from the command line. But not everything has been added yet. It seems that the interpolate setting is not available. I will create an issue to make this available. It also seems that -fx operator can work on multiple images. MagickImageCollection does not support that as this moment. I will create another issue for that.

To end with some good news I added a small example below that does the first part of your command.
// ( xc:red xc:blue +append )using (MagickImageCollection images = new MagickImageCollection())
{
  images.Add(new MagickImage("xc:red"));
  images.Add(new MagickImage("xc:blue"));
  MagickImage result = images.AppendHorizontally(); // +append//MagickImage result = images.AppendVertically(); // -append
}

New Post: Does Magick.Net have methods for all convert command line transformations?

$
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: Does Magick.Net have methods for all convert command line transformations?

$
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 Script

$
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: XMP bag

$
0
0
Your image does not contain a xmp profile and that is why you receive the exception from ImageMagick.

New Post: XMP bag

$
0
0
Thank you! Is it possible to distinguish the absence of xmp profile in the image and runtime error program?

In other words, the program should write the error message in the log at runtime error. And not write to the log, if no xmp profile.

Maybe this can be done by error code? That means the following entry: @ error/meta.c/WriteMETAImage/2367 ?
2367 or 2366 is this error code ?

New Post: XMP bag

$
0
0
You can check if your image contains an xmp profile with the following code:
if (image.GetProfile("xmp") == null)
  // do something
The number behind the error message is a line number.

New Post: How is Convert Resample implemented with Magick.NET

$
0
0
Convert Resample implemented with Magick.NET. Can someone help me with an example.

New Post: How is Convert Resample implemented with Magick.NET

New Post: How is Convert Resample implemented with 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: Convert tiff from RGB to CMYK

$
0
0
I am trying to convert an image from RGB to CMYK. No matter what I do, I cannot save the image as a decent CMYK format. It either saves as pixelated CMYK, or as a very nice RGB. But I need it to go to a printer. It must be high quality CMYK.

I've tried literally 100s of combinations of code. Here is where I am right now, but nothing I have tried works.
        string oldFile = "c:\\Temp\\agent-j-peck1Before.tif";
        string newFile = "c:\\Temp\\agent-j-peck1After.tif";
        if (File.Exists(newFile))
            File.Delete(newFile);
            MagickImage img = new MagickImage(oldFile);
            img.ColorSpace = ColorSpace.CMYK;
            img.CompressionMethod = CompressionMethod.LZW;
            img.Write(newFile);
You can download the image here to see the original. http://kitt.us/agent-j-peck1Before.tif

Note, when it does save it as CMYK, the quality drops to a fraction of the original.

Any help appreciated. I really need to have this done by Monday. I have been struggling with this for days.
Viewing all 3693 articles
Browse latest View live


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