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

New Post: Convert tiff from RGB to CMYK

$
0
0
When converting between RGB and CMYK you should use color profiles. You can do that like this:
using (MagickImage image = new MagickImage("agent-j-peck1Before.tif"))
{
  image.AddProfile(new ColorProfile("USWebCoatedSWOP.icc"));
  image.ColorSpace = ColorSpace.CMYK;
  image.CompressionMethod = CompressionMethod.LZW;
  image.Write("agent-j-peck1After.tif");
}
You can download the profile here: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4075. That zip file contains multiple profiles. You should probably try to see which CMYK profile provides the best result for you.

New Post: Convert tiff from RGB to CMYK

$
0
0
First off, thank you.
Secondly here is my new code. I downloaded the color profile from the site above. I unzipped it into my project. But now I get an SEHException on the ColorSpace.CMYK line?

using (MagickImage image = new MagickImage())
        {
            image.AddProfile(new ColorProfile(Server.MapPath("~/ColorProfile/CMYK/USWebCoatedSWOP.icc")));
            image.ColorSpace = ColorSpace.CMYK;
            image.Read(oldFile, mySettings);
            image.Write(newFile);
        }

New Post: Convert tiff from RGB to CMYK

$
0
0
It seems ImageMagick is raising an exception. I will make sure this exception is caught an raised properly before the next release. You need to read the image before you add the profile and change the colorspace.
using (MagickImage image = new MagickImage(oldFile, mySettings))
{
  image.AddProfile(new ColorProfile(Server.MapPath("~/ColorProfile/CMYK/USWebCoatedSWOP.icc")));
  image.ColorSpace = ColorSpace.CMYK;
  image.Write(newFile);
}

New Post: Convert tiff from RGB to CMYK

$
0
0
Oh, DUH! Stupid on my part. I had been moving them around trying to resolve the problem. That actually makes perfect sense.

I flipped them around and it works perfectly now!!! Thanks so much!!

By the way, to show my extreme appreciation, I bought you a toy off of your wish list.

New Post: Convert tiff from RGB to CMYK

$
0
0
First of all, thank you very much for your donation. I included a couple of color profiles within Magick.NET. With the next release you will be able to use ColorProfile.USWebCoatedSWOP or ColorProfile.CoatedFOGRA39.

New Post: How is linearize RGB implemented with Magick.Net

$
0
0
convert 00001.tif -colorspace RGB -resample 72x72 -colorspace sRGB linearizeresample.jpg

How can this be implemented with Magick.Net
using (MagickImage image = new MagickImage(path))
        {
           // Linearize to RGB

           // Resample
            image.Resample(72, 72);

          // Back to sRGB
        }

New Post: How is linearize RGB implemented with Magick.Net

$
0
0
You are looking for the ColorSpace property of MagickImage
image.ColorSpace = ColorSpace.RGB;
// Resample
image.ColorSpace = ColorSpace.sRGB;

New Post: How is linearize RGB implemented with Magick.Net


New Post: svg to png - transparent background

$
0
0
hi dlemstra,

i am trying to make the transparent background while converting an image from .tiff to .jpg, using Imagemagic, but it doesn't work for me.

converting tiff to .png with transparent background is working well.

i am using MGKimage.BackgroundColor = MagickColor.Transparent; as per your suggestion.

thanks

New Post: svg to png - transparent background

$
0
0
Can you define what you mean by 'it doesn't work for me'? And are you aware of the fact that jpg doesn't support transparency.

New Post: svg to png - transparent background

$
0
0
"it doesn't work for me" means if i take a tiff image with black background and try to change it in jpg with transparent background it create jpg with same black background.

image file converted in png format are quite large in size do we have a way to reduce it's size?

New Post: svg to png - transparent background

New Post: svg to png - transparent background

$
0
0
Thanks dlemstra.

actually i need transparent background image, png is ok for me.

do we have any method to create reduced size png in c#?
or only the way to run the command line argument as you have suggested the link.

New Post: svg to png - transparent background

$
0
0
You should 'translate' the command line arguments to methods/properties. For example '-colors 255' is this:
MGKimage.QuantizeColors=255

New Post: svg to png - transparent background

$
0
0
Trying to make white background for an tif image, but getting the jpg with same black background as tiff.

using the below code:

using (MagickImage image = new MagickImage())
                        {
                            image.BackgroundColor =System.Drawing.Color.White;
                            image.Read(filePath);
                            image.Format = MagickFormat.Jpg;
                            image.Write(convertDir + "\\" + file + ".jpg");
                        }
what's going wrong here?

New Post: svg to png - transparent background

$
0
0
Have you tried setting the background after the read operation?

New Post: svg to png - transparent background

New Post: ARW format

$
0
0
Hi. I tried to convert a ARW image (Sony RAW format) and I got this error:
$exception {"Magick: TIFF directory is missing required \"ImageLength\" field. `MissingRequired' @ error/tiff.c/TIFFErrors/561"} System.Exception {ImageMagick.MagickCoderErrorException}

Could you help, please?

Regards, Carsten

New Post: ARW format

$
0
0
Could you try this:
MagickReadSettings settings = new MagickReadSettings();
settings.Format = MagickFormat.Crw;
image.Read("yourimage.arw", settings);
Please e-mail me your image if that doesn't work.

New Post: svg to png - transparent background

$
0
0
I tried to contact you through CodePlex, please contact me.
Viewing all 3693 articles
Browse latest View live


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