From the igal README:

iGal needs Perl to run and either cjpeg/djpeg/pnmscale (from libjpeg) or ImageMagick to generate your thumbnails. These come standard with most Linux distributions today.

igal is a command line tool, so if you take that approach you will probably need to adapt it to your own code. Looking at the code, igal calls either imagemagick or cjpeg using system, so if you adapt something from this code you'll have to be very careful about validating filenames etc, to avoid attackers being able to run arbitrary code on your webserver.

As far as installing modules without direct access to the server goes, have a look at this node. BUT, both GD & Image::Magick act as wrappers around existing libraries. If either of these libraries are installed on the ISPs web server, you could be in luck.

With the 'imageweb.info' approach, I suppose you could upload the file to your own script, then use LWP to upload the file from your script to imageweb.info & screen scrape the returned URL. Quite messy, and probably quite slow, but possible. If the client browser uploads the file direct to imageweb.info as you initially suggest, you won't have a connection from your script to the returned page to be able to grab the returned URL. The other problem is if imageweb.info changed their upload/response page drastically your script would stop working.

There is also this site, which returns a scaled graphic rather than a URL.

g0n, backpropagated monk

In reply to Re^2: Auto Thumbnails? by g0n
in thread Auto Thumbnails? by jmnthe3rd

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.