Click here to get back home

Any ImageMagick Gurus out there? I need HELP!

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Any ImageMagick Gurus out there? I need HELP! ihatzi 11-07-2006
Posted by ihatzi on November 7, 2006, 2:33 pm
Please log in for more thread options


Ok, I am pulling what is left of my hair out on this one.

I am trying to make a hit counter where the numbers are overlaid onto a
background image.

I have the numbers 0,1, 2...9 saved as individual GIF images with a
color set to be the transparent background color. The background is a
GIF without any transparent color definition.

When I composite the number images to the background, the transparent
color shows up as white rather than displaying the background.

I am using CorelDraw12 to create the GIF images.

Here is my code:

$hits="001486";

for ($i = 0; $i <= 6; $i++) {
$numbers->Read( . "num-" . substr($hits, $i, 1) . ".gif");
}
$numbers = $numbers->montage(tile=>"7x1", mode=>"Concatenate");

$counter->Read("background.gif");
$counter->Composite(image=>$numbers, compose=>'over',x=>10, y=>10);

binmode STDOUT;
print "Content-type: image/gif\n\n";
$counter->Write("gif:-");

Any clue why this would not work?
Thanks for the help

Ion


Posted by Ron Savage on November 9, 2006, 4:02 am
Please log in for more thread options


On Wed, 8 Nov 2006 06:33:28 +1100, ihatzi@hotmail.com wrote:

Hi

> $hits=3D"001486";
>
> for ($i =3D 0; $i <=3D 6; $i++) {

Err, surely you mean $i < length($hits)? So $i < 6.

> $numbers->Read( . "num-" . substr($hits, $i, 1) . ".gif");

No error checking.

>}
> $numbers =3D $numbers->montage(tile=3D>"7x1", mode=3D>"Concatenate");
>
> $counter->Read("background.gif");

No error checking.

> $counter->Composite(image=3D>$numbers, compose=3D>'over',x=3D>10, y=3D>10);

No error checking.

> binmode STDOUT;
> print "Content-type: image/gif\n\n";
> $counter->Write("gif:-");

No error checking.





Similar ThreadsPosted
ImageMagick and threads October 12, 2004, 1:44 pm
how to use ImageMagick to compare 2 images? September 3, 2004, 11:05 pm
Newb Needs Help with Simple ImageMagick Module October 26, 2005, 11:02 am
ImageMagick and Xitami jpeg/bmp issue June 28, 2006, 9:40 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap