Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Are Image::Magick and/or GD compatible with Perl v5.10.0?

Is it possible to build dynamic images, specifically out of other resized images resulting in a collage, that can be delivered via webserver?

A "Hello World" picture, if you will.

Here is an example of the type of thing I want to eventually make. NO I'M NOT LOOKING FOR SOMEONE TO CODE THIS SPECIFICALLY.

http://card.psnprofiles.com/1/someone01.png

I've heard about things like Image::Magick and GD, but as with all modules and things, I'm never really sure which ones will work for me or how I'm supposed to install them. I've tried downloading various different archive files and sticking the PM files into perl/bin and I've tried various different installers but I can never get any of it to work because the instructions aren't clear enough. I'm using Windows XP SP2, an apache 2.2 webserver and perl v5.10.0

Also it would be nice to see some sample code that can do the basics: generate an image of a particular size, with some background color or image, insert an existing image, insert some random text in some random color, and maybe draw a line or shape or something (much less important). All in particular positions, sizes and opacity.

I just need something to get me started. All the stuff I've found on google has been a bit too generalized, ambiguous and over my head.

------------------------ EDIT ------------------------

This is what brief, concise help might look like.

- Hey dude, I think this module would be better for you
- download it here (direct link or link to site and specify which version I should get, ie: is compatible and has all the basics of point 2...)
- run the installer -- or -- put the files here and type this in the command prompt to compile it
- here's a quick sample set of basic functions

use blah; $img = new image; $img -> insertImage(paramenters); $img -> changeColor(paramenters); $img -> insertText(paramenters); $img -> changeColor(paramenters); $img -> insertLine(paramenters); binmode; # necessary ??? print $img;

Then when someone goes to site.com/cgi/hello.pl, it generates something for them.


In reply to Dynamic image collages delivered by webserver by fgsfds100

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found