Image Magick thumbnail batch resizing

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Re: Image Magick thumbnail batch resizing

    Spartacus <spam@mailinator.com> writes:
    >
    > As both 'convert' and 'display' utilize imagemagick, I guess it should in
    > theory be possible to get the same quality either way.
    >
    > Does anyone knows how the "display vid" procedure acheive such good result,
    > and how I can get equivalent quality using a simple batch convert?
    I think you want to scale instead of sample

    do convert -quality 85 -scale x75 $i ../thumbs/`basename $i .jpg`.jpg;
    > Or are there any suitable perl tools (modules) that could be useful
    > here?
    PerlMagick gives you access to all of ImageMagick from within Perl,
    but it doesn't do anything differently.

    Alternatively, you could use Image::Resize or GD itself.

    I hope this helps,

    Tim
    Tim Heaney Guest

  2. Similar Questions and Discussions

    1. Image::Magick::Thumbnail::create problem
      I am using a script based on the example from www.cpan.org for Image::Magick::Thumbnail:- #!/usr/bin/perl -w use CGI qw(:all); print header;...
    2. Help: Image::Magick::Thumbnail
      Hi, The following example (from cpan.org) take an .jpg image and creates a thumbnail. It creates an image where the biggest size is 50 pixels. ...
    3. Thumbnail image in Flash to larger image in new window?
      I have a series of thumbnail images in Flash and I want the user to be able to click on the thumbnail and get a larger photo. I know how to make the...
    4. Image Magick
      Mike At Spy wrote: the easiest way to remove them is to use RPM, if that was what was used to install them rpm -e ImageMagick if there are no...
    5. [PHP] Image Magick
      Mike -- ...and then Mike At Spy said... % % Anyone here familiar with the installation of Image Magick and what filesit % installs on your...
  3. #2

    Default Re: Image Magick thumbnail batch resizing

    Spartacus wrote:
    > Or are there any suitable perl tools (modules) that could be useful here?
    I'm accessing ImageMagick from the Perl module Image::Magick:

    use Image::Magick;
    my $image = Image::Magick->new;
    $image->Read('/path/to/original/image');
    $image->Thumbnail('120x120');
    $image->Write('/path/to/thumbnail/directory');

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]
    Gunnar Hjalmarsson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139