Click here to get back home

Newb Needs Help with Simple ImageMagick Module

 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
Newb Needs Help with Simple ImageMagick Module ion 10-26-2005
Posted by ion on October 26, 2005, 11:02 am
Please log in for more thread options


I am totally new to ImageMagick and am banging my head on this one. (I
am also a bit weak when it comes to OOP)

I need a PERL script that reads 3 gif files from the hardrive and
concatonates them together into 1 image, then displays it to the
browser. (yes, I am building a counter)

Here is what I have so far, Any help getting this to work is greatly
apreciated:


#!/usr/bin/perl
use Image::Magick;

my($image, $x);
$image = Image::Magick->new;
$x = $image->Read('img1.gif', 'img2.gif', 'img3.gif');

print "Content-type: image/gif\n\n";
$x = $image->Display();
undef $image;


Thanks in advance
Ion



Posted by usenet on October 26, 2005, 11:06 am
Please log in for more thread options


i...@copsplus.com wrote:
> I need a PERL script that reads 3 gif files from the hardrive and
> concatonates them together into 1 image...

Um, why? Why not just feed the broswer three images? Why take on the
processing overhead to concat the images?

BTW, it's "Perl," not PERL.



Posted by ion on October 26, 2005, 11:10 am
Please log in for more thread options


Heya. Thanks for the reply.

This is because I am writing this for use by webmasters on their sites
and need to be able to provide an image tag that will generate the full
counter. ie:

<img src="www.mysite.com/cgi-bin/coolcounter.cgi">

:-)
Ion



Similar ThreadsPosted
ImageMagick and threads October 12, 2004, 1:44 pm
Any ImageMagick Gurus out there? I need HELP! November 7, 2006, 2:33 pm
how to use ImageMagick to compare 2 images? September 3, 2004, 11:05 pm
ImageMagick and Xitami jpeg/bmp issue June 28, 2006, 9:40 am
Expect.pm module help - simple question... March 15, 2005, 12:27 pm
Any experiences with LockFile::Simple module? April 25, 2006, 4:56 pm
Suggested module: Algorithm::SVM::Simple June 26, 2008, 4:19 am
XML::Simple Help? April 23, 2005, 5:09 pm
Help in XML::Simple July 1, 2005, 9:12 pm
Getopt::Simple V 1.47 July 29, 2004, 7:18 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap