Search found 33 matches

by johnfl68
2013-05-24T10:03:12-07:00
Forum: PerlMagick
Topic: Caption is overflowing box
Replies: 5
Views: 11435

Caption is overflowing box

Hello: I thought that if you use caption for text, that it is supposed to word wrap to fit. Often times I find that words are cut off on the right side (gravity west), and there is plenty of space below for the words to wrap, but they often don't. I could add in Text::Wrap but I shouldn't have to, i...
by johnfl68
2013-04-04T00:01:20-07:00
Forum: PerlMagick
Topic: Rotate around center - Distort SRT
Replies: 3
Views: 10917

Re: Rotate around center - Distort SRT

fmw42 - for what ever reason, using rotate seems to use a convoluted method to create the rotation, and depending on the degree's of rotation, does not give good effects: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=17792#p67335 In the case of what I am doing, it is a circle icon ...
by johnfl68
2013-04-03T23:51:25-07:00
Forum: PerlMagick
Topic: LevelColors
Replies: 2
Views: 8218

Re: LevelColors

OK, I figured this one out, at least it seems to be working right now. fmw42 -Thanks for the suggestion, but as in the example I cited, I intended to set only the black-point color, as that is how you get the results I am after in the black to red cow example. In the command line version you specifi...
by johnfl68
2013-04-03T09:47:27-07:00
Forum: PerlMagick
Topic: LevelColors
Replies: 2
Views: 8218

LevelColors

Does anyone know how to use LevelColors in perl as in the example with turning the black cow to red as on this page: http://www.imagemagick.org/Usage/color_mods/#level-colors I have tried the following: $image->LevelColors('black-point' => "red", ); This only turns white to cyan, and does nothing to...
by johnfl68
2013-04-02T22:47:05-07:00
Forum: PerlMagick
Topic: Rotate around center - Distort SRT
Replies: 3
Views: 10917

Rotate around center - Distort SRT

Hello: I'm trying to get a arrow png to rotate to a direction around the center. I tried rotate, but that seems to rotate around the corner. I have found talk about using Distort SRT instead, but there seem to be no good Perl examples for use. I tried this: my $windicon = Image::Magick->new; $windic...
by johnfl68
2013-02-20T10:41:15-07:00
Forum: PerlMagick
Topic: Argument "gravity" isn't numeric in subroutine entry...
Replies: 0
Views: 5890

Argument "gravity" isn't numeric in subroutine entry...

Hello: I am cleaning up some old code in a script, and I had use strict/warnings commented out, so I uncommented them, and then received the following error on a few lines: Argument "gravity" isn't numeric in subroutine entry at ... line ... Probably part of why they were commented out. The code lin...
by johnfl68
2012-12-27T12:25:19-07:00
Forum: PerlMagick
Topic: Using Transparent to change colors to transparent
Replies: 7
Views: 16116

Re: Using Transparent to change colors to transparent

Sorry - that is a typo in what was posted here, as I shortened the variable name for posting here.
It does not exist in my code.

Thanks though, I wish it was something that simple.
by johnfl68
2012-12-26T18:26:45-07:00
Forum: PerlMagick
Topic: Using Transparent to change colors to transparent
Replies: 7
Views: 16116

Re: Using Transparent to change colors to transparent

Yes, I didn't show all the code, because there is a lot of other image magick stuff going on in the same script. Everything else works but that. It's just a pain because right now I have to save the image out, do the conversion via command line once for each of the 10 colors, read the image back int...
by johnfl68
2012-12-26T15:36:52-07:00
Forum: PerlMagick
Topic: Using Transparent to change colors to transparent
Replies: 7
Views: 16116

Re: Using Transparent to change colors to transparent

Thanks. However, the -transparent-color color command is supposed to take care of the alpha and channel settings so that you don't need to do that when converting a color to a transparency. "The -transparent operator also ensures that the image has an alpha channel enabled, as per "-alpha set", and ...
by johnfl68
2012-12-26T10:18:02-07:00
Forum: PerlMagick
Topic: Using Transparent to change colors to transparent
Replies: 7
Views: 16116

Using Transparent to change colors to transparent

Hello: I am using the following suggested on another site to remove a set of colors from a gif image, by making them transparent: my @noise = ( '#646464' , '#ccffff' , '#cc99cc' , '#996699' , '#663366' , '#cccc99' , '#999966' , '#646464' , '#04e9e7' , '#019ff4' ) ; my $fuzz = 32; $img->Set(colorspac...
by johnfl68
2012-11-21T11:41:34-07:00
Forum: PerlMagick
Topic: Feedback from Caption if text overflows box?
Replies: 0
Views: 5978

Feedback from Caption if text overflows box?

Hello: Does anyone know if there is a way to get a result back when you use caption in perl, so that you can get a flag back if your text has overflowed the box? For example get back a "1" if the text fit in the box, or a "0" if it did not. I have a situation where I am dealing with a long piece of ...
by johnfl68
2012-11-21T11:32:57-07:00
Forum: PerlMagick
Topic: Setting PNG output to 24-bit color
Replies: 2
Views: 19141

Re: Setting PNG output to 24-bit color

Ok, after much searching, I found it.

You add png24: before the filename:

Code: Select all

$image->Write(filename => "png24:sample.png");
John
by johnfl68
2012-10-19T15:38:52-07:00
Forum: PerlMagick
Topic: Setting PNG output to 24-bit color
Replies: 2
Views: 19141

Setting PNG output to 24-bit color

Hello all: I have been looking around, and not really finding the right answer yet. I have PNG's that are being dynamically created every hour, and they are coming out as 64-bit PNG's. They do have transparencies in them, as part of the image creation, right now I do not need the transparencies in t...
by johnfl68
2012-07-23T14:44:36-07:00
Forum: PerlMagick
Topic: Frame animation to mp4
Replies: 5
Views: 20589

Re: Frame animation to mp4

Ok, a little farther. I changed images to gif, and then could do command line convert of gifs to animated gif with delay. Then I tried the same command line changing output to mov - and it chugged for a second and seemed to write a file, looked in directory, file with about the same size as animated...
by johnfl68
2012-07-22T19:30:13-07:00
Forum: PerlMagick
Topic: Frame animation to mp4
Replies: 5
Views: 20589

Re: Frame animation to mp4

Well - for one I can't find any perl examples to even animate a gif, except for 1: #!/usr/bin/perl use Image::Magick; $q = Image::Magick->new; $x = $q->Read("B1.png", "B2.png", "B3.png", "B4.png", "B5.png"); warn "$x" if $x; $x = $q->Write("B.gif"); warn "$x" if $x; Which works, but I can't find any...