jQuery-File-Upload-Imager
view release on metacpan or search on metacpan
- Re-work many links in the POD.
- Remove trailing blanks on many lines.
- The code refers to $ENV{SCRIPT_URI} aks $ENV{'SCRIPT_URI'}. CGI and Plack set $ENV{SCRIPT_NAME},
but I have not yet determined what to do about this problem. I scanned the source of Catalyst,
but could not find any cases where Catalyst sets $ENV{SCRIPT_URI}.
- I've added a FAQ to the POD, to discuss these issues and various other problems.
1.00 Thu May 23 13:57:00 2013
- Original version.
- This is a fork of jQuery::File::Upload V 0.16.
- It replaces Image::Magick with Imager because all copies of Image::Magick
have been removed from CPAN. They are still on backpan.perl.org though.
- Features converted:
Image::Magick Imager
-----------------------------------------
Read(file => $fh) read(fh => $fh)
Get('width') getwidth()
Get('height') getheight()
Clone() copy()
Resize(width => $w, height => $h) scale(xpixels => $x, ypixels => $y, type => 'nonprop')
Set(quality => $q) write(file => $name, type => $type, jpegquality => $q)
Set(density => $d): $d="${x}x$y" scale(xpixels => $x, ypixels => $y, type => 'nonprop')
Write("$format:$name") write(file => $name, type => $format)
- Rename Changes to CHANGES.
Changelog.ini view on Meta::CPAN
but I have not yet determined what to do about this problem. I scanned the source of Catalyst,
but could not find any cases where Catalyst sets $ENV{SCRIPT_URI}.
- I've added a FAQ to the POD, to discuss these issues and various other problems.
EOT
[V 1.00]
Date=2013-05-23T13:57:00
Comments= <<EOT
- Original version.
- This is a fork of jQuery::File::Upload V 0.16.
- It replaces Image::Magick with Imager because all copies of Image::Magick
have been removed from CPAN. They are still on backpan.perl.org though.
- Features converted:
Image::Magick Imager
-----------------------------------------
Read(file => $fh) read(fh => $fh)
Get('width') getwidth()
Get('height') getheight()
Clone() copy()
Resize(width => $w, height => $h) scale(xpixels => $x, ypixels => $y, type => 'nonprop')
Set(quality => $q) write(file => $name, type => $type, jpegquality => $q)
Set(density => $d): $d="${x}x$y" scale(xpixels => $x, ypixels => $y, type => 'nonprop')
Write("$format:$name") write(file => $name, type => $format)
- Rename Changes to CHANGES.
lib/jQuery/File/Upload/Imager.pm view on Meta::CPAN
$j_fu->thumbnail_height(80);
This sets the height for the thumbnail that will be created if the
file is an image. Default is 80.
=head3 tumbnail_quality
$j_fu->thumbnail_quality(70);
This sets the quality of the generated thumbnail. Default is 70 and it
can be on a scale of 0-100. See L<Image::Magick> for more information.
=head3 thumbnail_quality
$j_fu->thumbnail_quality(70);
This sets the quality of the thumbnail image. Default is 70 and it
can be on a scale of 0-100. See L<Image::Magick> for more information.
=head3 thumbnail_format
$j_fu->thumbnail_format('jpg');
Sets the format for the generated thumbnail. Can be jpg, png, or gif.
See L<Image::Magick> for more information. Defaults to jpg.
=head3 thumbnail_density
$j_fu->thumbnail_density('80x80');
Sets the density for the generated thumbnail. Default is width x height.
See L<Image::Magick> for more information.
=head3 thumbnail_prefix
$j_fu->thumbnail_prefix('thumb_');
Added before the image filename to create the thumbnail unique filename.
Default is 'thumb_'.
=head3 thumbnail_postfix
lib/jQuery/File/Upload/Imager.pm view on Meta::CPAN
my $final_height = $j_fu->thumbnail_final_height;
Because the thumbnails are scaled proportionally, the thumbnail height
may not be what you orignally suggested. This gets you the final height.
=head3 quality
$j_fu->quality(70);
This sets the quality of the uploaded image. Default is 70 and it
can be on a scale of 0-100. See L<Image::Magick> for more information.
=head3 format
$j_fu->format('jpg');
Sets the format for the generated thumbnail. Can be jpg,png, or gif.
See L<Image::Magick> for more information. Defaults to jpg.
=head3 final_width
my $final_width = $j_fu->final_width;
Returns the final width of the uploaded image.
=head3 final_height
my $final_height = $j_fu->final_height;
lib/jQuery/File/Upload/Imager.pm view on Meta::CPAN
L<jQuery File Upload|https://github.com/blueimp/jQuery-File-Upload/>
=back
=head1 AUTHOR
Adam Hopkins, E<lt>srchulo@cpan.org<gt>
Ron Savage I<E<lt>ron@savage.net.auE<gt>> has patched jQuery::File::Upload V 0.16
to use L<Imager> rather than L<Image::Magick>, on 2013-05-23. See the L</FAQ> for details.
=head1 Bugs
I haven't tested this too thoroughly beyond my needs, so it is possible
that I have missed something. If I have, please feel free to submit a bug
to the bug tracker, and you can send me an email letting me know that you
submitted a bug if you want me to see it sooner :)
=head1 COPYRIGHT AND LICENSE
( run in 0.275 second using v1.01-cache-2.11-cpan-beeb90c9504 )