Search found 148 matches

by rmabry
2008-11-29T16:50:06-07:00
Forum: PerlMagick
Topic: extract
Replies: 7
Views: 20035

Re: extract

We cannot reproduce the problem. I'm having that trouble myself! :? Perhaps I confounded myself keeping track of all the experiments. Now I get sort of the opposite. After reading an image, $image = new Image::Magick; $image->ReadImage('logo:'); I tried $ok = $extImage->Extent(geometry => "55x...
by rmabry
2008-11-29T16:03:14-07:00
Forum: Users
Topic: -extract
Replies: 7
Views: 22233

Re: -extract

Worked OK for me without an error as well - Windows XP Strange. Thanks for trying it. You didn't mention which version you're using, but I now suspect it won't matter! If I use "48" in place of "48x" I get an " invalid argument" error. I pressume you are getting an err...
by rmabry
2008-11-29T14:21:32-07:00
Forum: PerlMagick
Topic: extract
Replies: 7
Views: 20035

Re: extract

Use Extent() to do what you want. First clone the big image with Clone(). If you recall, clone uses a pixel cache reference so it should be light-weight. Thanks --- I avoided Clone() because I did NOT recall that, but thanks for your generous assumption! It works in a small test, so I'll give it a ...
by rmabry
2008-11-29T14:17:29-07:00
Forum: Users
Topic: -extract
Replies: 7
Views: 22233

Re: -extract

convert -extract 55x+0+0 logo: verticalWiz.png works for me with IM 6.4.4 on Win XP Pete Ha! This is me, also on XP: Version: ImageMagick 6.4.5 2008-10-24 Q16 It gives the error, convert: geometry does not contain image `LOGO'. Exactly the same for Version: ImageMagick 6.4.4 2008-10-19 Q16 on Linux...
by rmabry
2008-11-29T13:23:56-07:00
Forum: PerlMagick
Topic: extract
Replies: 7
Views: 20035

Re: extract

Set the extract attribute before you read an image. It useful for extracting a region from an image at read time. The best example would be if you want to extract, for example, a 1024x1024 section from a massive raw RGB image. I see, thanks. Here's my situation: I have a giant image in memory and w...
by rmabry
2008-11-29T12:18:57-07:00
Forum: PerlMagick
Topic: extract
Replies: 7
Views: 20035

extract

How does one use the "extract" option in PerlMagick? The docs indicate that the extract geometry is an attribute. Okay, so, $image->Set(extract=>"24x48+0+0"); should set it. But then what? Using WriteImage subsequently gives the original image, not an extracted one. But why would...
by rmabry
2008-11-29T12:06:55-07:00
Forum: Users
Topic: -extract
Replies: 7
Views: 22233

-extract

In the command-line -options doc, under -extract, the following is missing a single quotation mark: convert -size 16000x16000 -depth 8 image.rgb[640x480+1280+960]' image.rgb image.png Actually, I find the examples given for this to be unnecessarily complicated for the typical extract operation. Here...
by rmabry
2008-11-19T20:40:05-07:00
Forum: PerlMagick
Topic: Statistics()
Replies: 8
Views: 80665

Re: Statistics()

We cannot reproduce the problem. We're using Perl 5.10.0. I shoulda mentioned it. I'm so: This is perl, v5.8.8 built for MSWin32-x86-multi-thread Version: ImageMagick 6.4.5 2008-10-24 Q16 http://www.imagemagick.org Try adding 0 to Image::Magick->QuantumDepth so it switches to a numeric context. Sam...
by rmabry
2008-11-19T19:29:57-07:00
Forum: PerlMagick
Topic: Statistics()
Replies: 8
Views: 80665

Re: Statistics()

What to make of this? The code I quoted, use Image::Magick; my $quantumDepth = Image::Magick->QuantumDepth; print "QuantumDepth = $quantumDepth\n"; [/size] gives Argument "Image::Magick" isn't numeric in subroutine entry at F:/Perl/site/lib/Image/Magick.pm line 43. but does also ...
by rmabry
2008-11-18T07:00:03-07:00
Forum: PerlMagick
Topic: Statistics()
Replies: 8
Views: 80665

Statistics()

What's the proper way to grab different chunks of the statistics array returned by $image->Statistics() ? At the moment I only need the means of the RGB in the normalized range [0,1], and I kludged it like so: my @stats = $image->Statistics(); my $maxQ = -1+ (1<<$image->Get('depth')); my ($rMean, $g...
by rmabry
2008-11-18T06:16:09-07:00
Forum: Developers
Topic: Checking out the new GradientImage in 6.4.5-4
Replies: 3
Views: 8731

Re: Checking out the new GradientImage in 6.4.5-4

> The previous edition of this thread seems to have drifted

And if I may prompt further drifting ...

[How] can I test the radial gradient in PerlMagick?

Rick
by rmabry
2008-10-30T06:25:30-07:00
Forum: Developers
Topic: Checking out the new GradientImage in 6.4.4-2
Replies: 39
Views: 77682

Re: Checking out the new GradientImage in 6.4.4-2

From Anthony's world of magick ( http://www.imagemagick.org/Usage/canvas/#gradient_distort ): However be warned that the gradient does not just 'stop' but continues to change beyond those points. Traditionally a barycentric gradient will be limited to within the enveloping triangle of points used to...
by rmabry
2008-10-26T19:44:51-07:00
Forum: Developers
Topic: Checking out the new GradientImage in 6.4.4-2
Replies: 39
Views: 77682

Re: Checking out the new GradientImage in 6.4.4-2

Try something like channel=>'rg'. This may work as well channel=>'red,green,blue'. And even channel=>'red|green|blue'. Not sure on that one. Both 'rgb' and 'grb' work identically; same as 'reg,green,blue' and 'green,red,blue', so I think that 'rg', 'red,green' and such make sense. But my particular...
by rmabry
2008-10-26T18:24:51-07:00
Forum: Developers
Topic: Checking out the new GradientImage in 6.4.4-2
Replies: 39
Views: 77682

Re: Checking out the new GradientImage in 6.4.4-2

Channels in PerlMagick are specified like this: channel=>'rgb' or channel=>'red' or channel=>'cmyk'. Thanks, I gather from this that my Red | Green | Blue should be 'rgb', which is not in the lists I see in the PerlMagick doc: c hannel=>{All, Default, Alpha, Black, Blue, Cyan, Gray, Green, Index, M...
by rmabry
2008-10-25T22:24:31-07:00
Forum: Developers
Topic: Checking out the new GradientImage in 6.4.4-2
Replies: 39
Views: 77682

Re: Checking out the new GradientImage in 6.4.4-2

I got an example of SparseColorImage working. It's a mix of MagickCore and MagickWand and almost certainly has a memory leak or two in it, but it does produce the same output as Anthony's example (minus the circles). Hey, thanks for that. This perl snippet also works, just as you said, though I'm n...