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

New Post: Scaling large images


New Post: Scaling large images

$
0
0
What is the amount of memory in your system? And are you using the x86 or x64 version of Magick.NET / convert.exe ? Do you still see a temp file being created with the command line?

New Post: CMYK jpeg to RGB jpeg, leaving image as CMYK.

$
0
0
I've tried the sample for converting from CMYK to RGB and the output still appears to have CMYK embedded.
            var settings = new MagickReadSettings();
            settings.ColorSpace = ColorSpace.RGB;

            using (MagickImage image = new MagickImage())
            {
                image.AddProfile(ColorProfile.SRGB);
                image.Read(sourceImagePath , settings);
                image.Write(destinationImagePath );
            }
I've also tried swapping the ColorSpace enumeration above with .CMYK to no avail.

After running the code above and using http://regex.info/exif.cgi to read the metadata, I can see the following warning;
WARNING: Embedded color profile: “(unrecognized embedded color profile 'U.S. Web Coated (SWOP) v2')”
Some popular web browsers ignore embedded color profiles, meaning users of those browsers see the wrong colors for this image.
Obviously, this is exactly what I am trying to get rid of as it renders poorly in IE and other image libs have trouble understanding it (as it is CMYK).

Am I doing something dumb? Tried a few different angles but can't see it.

Thanks in advance

Ryan

New Post: Scaling large images

$
0
0
I have 8 Gb of memory and using x86 version. No, command line tool doesn't create temp files, but application based on library creates huge temp files.

New Post: CMYK jpeg to RGB jpeg, leaving image as CMYK.

$
0
0
Can you add a link to your image? If you don't want to publicly share your image feel free to contact me through CodePlex.

New Post: DPX Image Format to TIFF not work?

$
0
0
hi,
is the bug in the last "6.8.8.201" version already fixed ?

PS: did you get the book from amazon? :)

New Post: Scaling large images

$
0
0
I just realized why this doesn't work. Magick.NET is build with HDRI support which means each channel uses 4 bytes. For each pixel this will be a total of 16 bytes (RGBA). This will be changed in ImageMagick 7, only 1 channel will be used for a grayscale image.

Your output image has a size of 31200x15152. That is a total of 7563878400 bytes, which is 7gb. In a 32 bit application the maximum about of memory that can be addressed is 2gb and that is why Magick.NET is using your hard disk to store the pixel data.

Did you run your test with the command line with the option: -define registry:temporary-path=d:\?

If possible I would advice you to switch to the x64 version of Magick.NET, this will allow you to address more memory.

New Post: DPX Image Format to TIFF not work?

$
0
0
This bug has been fixed. And thank you for the book, I had no idea who send it to me :)

New Post: DPX Image Format to TIFF not work?

$
0
0
ok, i will test it :)

i thought that amazon write the sender somewhere, this was my first gift that i have sent from amazon :)

New Post: DPX Image Format to TIFF not work?

$
0
0
It does but not your nickname on CodePlex :). I send you a message through CodePlex, can you reply to that email?

New Post: DPX Image Format to TIFF not work?

$
0
0
mhh,

i have test it, but i got the same result (false colors)
Dim matrix As New ColorMatrix(3)
        matrix(0, 0) = 0.4124564
        matrix(1, 0) = 0.3575761
        matrix(2, 0) = 0.1804375
        matrix(0, 1) = 0.2126729
        matrix(1, 1) = 0.7151522
        matrix(2, 1) = 0.072175
        matrix(0, 2) = 0.0193339
        matrix(1, 2) = 0.119192
        matrix(2, 2) = 0.9503041

        Using image As New MagickImage(input)
            image.AddProfile(ColorProfile.SRGB)
            image.BitDepth(Channels.Composite, 12)
       
                image.Gamma(0.454544)
                image.ColorMatrix(matrix)
                image.Gamma(2.6)
          
            image.Write(output)
        End Using

New Post: DPX Image Format to TIFF not work?

$
0
0
i have send you an email back....

New Post: DPX Image Format to TIFF not work?

$
0
0
You should set the BitDepth as the last operation before you write your image because this will clamp your pixels to 12 bit. You should do it like this:
Using image AsNew MagickImage(input)
  image.AddProfile(ColorProfile.SRGB) 'Are you sure you need this?
       
  image.Gamma(0.454544)
  image.ColorMatrix(matrix) ' This will create "out of range" pixels.
  image.Gamma(2.6)
  
  image.BitDepth(12) 'I added a new overload that accepts an integer.
  image.Write(output)
EndUsing
p.s. I am only writing this in VB because you got me the book :) Otherwise I would translate it to C#

New Post: DPX Image Format to TIFF not work?

New Post: Scaling large images

$
0
0
I get it.
Is there any way to improve performance of application, except switching to x64 version, which, I assume, won't help much? Maybe using gcAllowVeryLargeObjects?
Performance in my case is quite critical.

New Post: Scaling large images

$
0
0
Switching to the x64 can improve the performance as long as your image still fits in your computer his memory. Your performance will degrade dramatically once disk cache has to be used. With the x86 version this will happen with an image uses more than 2gb of memory. Your convert.exe is probably build without HDRI enabled which cuts the amount of memory in half. And with a Q8 non HDRI version you will even use half of that. The current Q8 build of Magick.NET also has HDRI enabled but maybe I should disable HDRI for that build. Instead of 16 bytes per pixel it will then only use 4 bytes. But then your channel will only have a range of 0-255. Would that be enough for you?

Setting gcAllowVeryLargeObjects will not help because the ImageMagick code is unmanaged.

New Post: Scaling large images

$
0
0
Yes, switching from 16 to 4 bpp would be great and pixel range 0-255 is exactly what I need. How can I obtain this version?

New Post: Scaling large images

$
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: CMYK jpeg to RGB jpeg, leaving image as CMYK.

$
0
0
That works, but the palette goes very grey. I'll send you an image if that's OK of the before and after.

New Post: Does Magick.Net support "caption:" functionality?

$
0
0
How do you combine the caption functionality with gravity?

I need to be able to place text aligned left, centered or right. I have got it working using image.Draw with a collection of Drawable objects but calculating the font point size is a performance hit which I do not notice when using caption. (using FontTypeMetrics in a loop)
Viewing all 3693 articles
Browse latest View live


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