jQuery-File-Upload

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "CGI" : "0",
            "Cwd" : "0",
            "Data::GUID" : "0",
            "Image::Magick" : "0",
            "JSON" : "0",
            "JSON::XS" : "0",
            "Net::SSH2" : "0",
            "Net::SSH2::SFTP" : "0",
            "URI" : "0",
            "perl" : "5.006"
         }
      }
   },
   "release_status" : "stable",

META.yml  view on Meta::CPAN

  version: '1.4'
name: jQuery-File-Upload
no_index:
  directory:
    - t
    - inc
requires:
  CGI: '0'
  Cwd: '0'
  Data::GUID: '0'
  Image::Magick: '0'
  JSON: '0'
  JSON::XS: '0'
  Net::SSH2: '0'
  Net::SSH2::SFTP: '0'
  URI: '0'
  perl: '5.006'
resources:
  repository: https://github.com/srchulo/jQuery-File-Upload.git
version: '0.32'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

Makefile.PL  view on Meta::CPAN

    },
    BUILD_REQUIRES => {
        'Test::More' => 0,
    },
    PREREQ_PM => {
        'CGI' => 0,
		'JSON::XS' => 0,
		'JSON' => 0,
		'Net::SSH2' => 0,
		'Net::SSH2::SFTP' => 0,
		'Image::Magick' => 0,
		'Cwd' => 0,
		'URI' => 0,
		'Data::GUID' => 0,
    },
    dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
    clean => { FILES => 'jQuery-File-Upload-*' },
   'META_MERGE'         => {
       'meta-spec' => { version => 2 },
        resources => {
            repository => {

lib/jQuery/File/Upload.pm  view on Meta::CPAN


use 5.008008;
use strict;
#use warnings;

use CGI;
use JSON::XS;
use JSON;
use Net::SSH2;
use Net::SSH2::SFTP;
use Image::Magick;
use Cwd 'abs_path';
use URI;
use Data::GUID;

#use LWP::UserAgent;
#use LWP::Protocol::https;

our $VERSION = '0.32';

my %errors =  (

lib/jQuery/File/Upload.pm  view on Meta::CPAN

	}

	return $self->is_image;
}

sub _set_image_magick {
	my $self = shift;
	return unless $self->is_image;

	#if used in persistent setting, don't recreate object
	$self->{image_magick} = Image::Magick->new unless defined $self->{image_magick};

	$self->{image_magick}->Read(file => $self->{fh});

	return $self->{image_magick};
}

sub _set_width {
	my $self = shift;
	return unless $self->is_image;

lib/jQuery/File/Upload.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 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.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 process_images

  $j_fu->process_images(1);

Create thumbnails for uploaded image files when set to 1. When set to undef, L<jQuery::File::Upload> will skip creating
thumbnails even when the uploaded file is an image. Images are simply treated like any other file. The default is 1.

=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.pm  view on Meta::CPAN

=item

L<Net::SSH2>

=item

L<Net::SSH2::SFTP>

=item

L<Image::Magick>

=item

L<Cwd>

=item

L<Digest::MD5>

=item



( run in 0.777 second using v1.01-cache-2.11-cpan-beeb90c9504 )