Dear monks,

I have asked the question before How to resize picture in windows?. Each of them answered in very different way many thanks for their ideas. And José Ramón Martínez, ask to reply the code when it works. Yeah, you may download ImageMagick-6.2.3-6-Q16-windows-dll.exe from the path http://www.imagemagick.org/script/binary-releases.php#windows and install it in your windows, while installing there is an option in checkbox Install PerlMagick for ActiveStatePerl check it and install it will automatically install with module in your system. Than, try the below code to resize the image. Congrats, to all. And thanks to astroby to give me a installer link.

use Image::Magick; my($image, $x); $image = Image::Magick->new; $x = $image->Read('Images.jpg'); warn "$x" if "$x"; $x = $image->Crop(geometry=>'200x50'); warn "$x" if "$x"; $x = $image->Write('x.png'); warn "$x" if "$x";

Reparented by davido per consideration.


In reply to Image::Magick module sample program code and steps for Windows? by gube
in thread How to resize picture in windows? by gube

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.