On Wed, February 15, 2006 9:52 am, Moisés Chicharro said:
> Hi,
> Thankyou for your response - much appreciated.
>
> Problem is the ISP is not too receptive about adding new modules to
> their perl install ImageMagick doesn't seem to be on there. Before I
> start the arduous process of convincing them to install a module, is
> there anyway of doing it without a module?
>
> My main aims being:
>
> - check uploaded image filesize is not too large (most important)
> - check uploaded image physical pixel size
> - change uploaded image physical pixel size (if possible without module)
>

Not easily.  (You'd have to read the file yourself, then do the rescale,
then write it back out in correct format.  All doable, but there's no
helper functions for any of it.)

There are about a dozen different modules that'll do this for you.  Check
to see if the ISP has any of them installed.  If not, beg them to install
ImageMagick: it's a very common tool for websites.

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

Reply via email to