Search found 27 matches

by E. Fudd Wabbitwy
2019-09-24T19:12:42-07:00
Forum: PerlMagick
Topic: PerlMagick users: BEWARE single-quote vs. double-quote
Replies: 2
Views: 76363

Re: PerlMagick users: BEWARE single-quote vs. double-quote

Yes I've read loads of Perl documentation over the 20+ years I've been using it. I still have almost none of it memorized, and if I see an example that's represented as working, I'll typically adapt it into my project as the quicker path. Taking the Crop() example, I was MUCH more troubled by my ...
by E. Fudd Wabbitwy
2019-09-24T11:21:32-07:00
Forum: PerlMagick
Topic: PerlMagick users: BEWARE single-quote vs. double-quote
Replies: 2
Views: 76363

PerlMagick users: BEWARE single-quote vs. double-quote

The following may be a result of my Perl installation. Or, it might be a result of the PerlMagick implementation, but after I finally, recognized the error-checking I'd seen in examples: $x=$image->Crop(someparameters); warn "$x" if "$x"; $image->Crop(geometry=>'100x100+10+20'); $image->[$x]->Frame ...
by E. Fudd Wabbitwy
2019-09-24T06:52:33-07:00
Forum: PerlMagick
Topic: [SOLVED] Creating a new() image from scratch, WITH attributes
Replies: 6
Views: 97657

Re: [SOLVED] Creating a new() image from scratch, WITH attributes

I meant it in a sense that the target would be "empty" of "meaningful" pixels, which would be overwritten later. (I'll edit.)
by E. Fudd Wabbitwy
2019-09-24T06:17:48-07:00
Forum: PerlMagick
Topic: [SOLVED] Colorize(blend=>string) [as RGB pctgs; e.g., blend=>'100/0/0']
Replies: 7
Views: 95109

Re: [SOLVED] Colorize(blend=>string) [as RGB pctgs; e.g., blend=>'100/0/0']

I took your advice and visited, and I recall that I'd been there before, hunting for 'blend', but didn't see the forest for the trees. It is exactly--half of--what I wanted: The Definitive List of ImageMagick Methods That Can Be Called From PerlMagick/Image::Magick Code. I still need, though, to ...
by E. Fudd Wabbitwy
2019-09-24T06:07:18-07:00
Forum: PerlMagick
Topic: [SOLVED] Creating a new() image from scratch, WITH attributes
Replies: 6
Views: 97657

Re: [SOLVED] Creating a new() image from scratch, WITH attributes

Thanks, Fred. That info is possibly going to be a game-changer. I'm trying to open a source PNG file, containing transparent and non-transparent pixels, open an "empty" PNG file as a target (say a dummy file of the same size, filled with 'white') copy/overwrite transparent pixels from the source ...
by E. Fudd Wabbitwy
2019-09-23T19:27:21-07:00
Forum: PerlMagick
Topic: [SOLVED] CopyPixels() isn't copying. [Missing something BA-SIC]
Replies: 1
Views: 71760

Re: CopyPixels() isn't copying. [Missing something BA-SIC]

The BA-SIC missing piece, found by more trial-and-error, was the parameter name '$image=>' before the image name:

Code: Select all

$imagewhite->CopyPixels([b]image=>[/b]$imagered,geometry=>'50x25+0+0',dx=>0,dy=>0);
by E. Fudd Wabbitwy
2019-09-23T19:09:22-07:00
Forum: PerlMagick
Topic: [SOLVED] Creating a new() image from scratch, WITH attributes
Replies: 6
Views: 97657

Re: [SOLVED] Creating a new() image from scratch, WITH attributes

There are other image-strings that may be used to create a new image (that is, other than 'xc:red') but I've not found a definitive list of all of them. I have had to rely on running across them in examples. One of the weirder ones I experimented with that worked was: $image->ReadImage('gradient ...
by E. Fudd Wabbitwy
2019-09-23T19:04:34-07:00
Forum: PerlMagick
Topic: [SOLVED] Creating a new() image from scratch, WITH attributes
Replies: 6
Views: 97657

Re: Creating a new() image from scratch, WITH attributes

The sticking point is non-intuitive. It is Not Enough to instantiate a new Image::Magick (which happens to be a list of images); it is also NECESSARY to READ at least one Image! And, creating a new Image from scratch is also Non-Intuitively performed by "Reading" something that's non-existent! Add ...
by E. Fudd Wabbitwy
2019-09-23T12:57:10-07:00
Forum: Developers
Topic: Question about PerlMagick API [how is the mapping done?]
Replies: 1
Views: 71565

Re: Question about PerlMagick API [how is the mapping done?]

(As I was writing that, I had already forgotten that @snibgo had suggested in another thread to hunt for the mappings in the .XS files. Indeed, as I found examples/prototypes? of PerlMagick methods in "quantum.xs", I also remembered that I had been there before, and that, for example, learning that ...
by E. Fudd Wabbitwy
2019-09-23T12:39:11-07:00
Forum: Developers
Topic: Question about PerlMagick API [how is the mapping done?]
Replies: 1
Views: 71565

Question about PerlMagick API [how is the mapping done?]

Backstory: I am approaching ImageMagick, as I gather a number of others' have, via something of a backdoor, insofar as I am a Perl user of some years and have the habit of using Perl modules (.PM) to access advanced functionality about which I don't want to face details. So far my experience with ...
by E. Fudd Wabbitwy
2019-09-23T12:06:59-07:00
Forum: PerlMagick
Topic: [SOLVED] CopyPixels() isn't copying. [Missing something BA-SIC]
Replies: 1
Views: 71760

[SOLVED] CopyPixels() isn't copying. [Missing something BA-SIC]

In this example, I am trying to copy the top half/bottom half of two different images into a third, but in fact neither of the CopyPixels() registers (the 4th Write is identical to the 3rd). I'm sure I'm missing something basic because even SetPixel() doesn't work. (Like a "commit" step?) Can you ...
by E. Fudd Wabbitwy
2019-09-22T11:55:24-07:00
Forum: PerlMagick
Topic: [SOLVED] Colorize(blend=>string) [as RGB pctgs; e.g., blend=>'100/0/0']
Replies: 7
Views: 95109

Re: Colorize(blend=>string) [what's the format of string?]

I realized that, having just installed ImageMagick from source and having not removed the compilation working-directory, I had the source to ImageMagick right in front of me! Here's what I did, in Ubuntu Linux: % find ~/ImageMagick-7.0.8-65/ -type f -exec grep -i Colorize\( {} \; -print | grep \.[ch ...
by E. Fudd Wabbitwy
2019-09-21T12:29:26-07:00
Forum: PerlMagick
Topic: [SOLVED] Colorize(blend=>string) [as RGB pctgs; e.g., blend=>'100/0/0']
Replies: 7
Views: 95109

Re: Colorize(blend=>string) [what's the format of string?]

@snibgo https://imagemagick.org/script/perl-magick.php#manipulate lists Method: Colorize() with two parameters, 'fill', and 'blend' Parameter 'fill' corresponds to the command line's 'value': as you say, it appears to be a color[1], but I looked in vain for a parallel for 'blend'. @Fred On the same ...
by E. Fudd Wabbitwy
2019-09-21T11:10:53-07:00
Forum: PerlMagick
Topic: [SOLVED] Colorize(blend=>string) [as RGB pctgs; e.g., blend=>'100/0/0']
Replies: 7
Views: 95109

[SOLVED] Colorize(blend=>string) [as RGB pctgs; e.g., blend=>'100/0/0']

I've only been able to find one example: blend->'0x20' from a user's comment on a different method. I want to read in an existing PNG image (which has transparency) and make the whole thing transparent. I guess that it should be doable with $image->Colorize(fill=>\@transp_pixelpkt,blend=>string ...
by E. Fudd Wabbitwy
2019-09-21T09:00:59-07:00
Forum: PerlMagick
Topic: [SOLVED] Creating a new() image from scratch, WITH attributes
Replies: 6
Views: 97657

[SOLVED] Creating a new() image from scratch, WITH attributes

According to my understanding of the documentation (references in the codeblock), it should be possible to create an image from scratch, using all of the attributes named under SetAttribute and to read them back, along with all other attributes under GetAttribute. However, in the following, only ...