I am trying to use imager, but I get the error that jpegs are not supported.
ModPerl::Registry: format 'jpeg' not supported at /usr/lib/perl5/5.8.0/CGI/Carp.pm
I have been looking but can not find how to install this. I am new to linux so a little lost.
Any Help?
Oh and this is the code.
my $img = Imager->new();
$img->read(file=>"$config{'basepath'}pictures/$filename") or die $img-
+>errstr();
$img = $img->scale(xpixels=>$config{'imgmax'},ypixels=>$config{'imgmax
+'},type=>'min');
$img->write(file=>"$config{'basepath'}thumbs/$filename", jpegquality=>
+25) or die $img->errstr;
janitored by ybiC: Balanced <code> tags around code snippet, as per Monastery convention, and also balanced <tt> tags around error message
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.