yes I also found a more direct way,
use Image::Resize;
$image = Image::Resize->new('large.jpg');
$gd = $image->resize(250, 250);
thanks for everyone.
On 2018/7/25 星期三 PM 1:51, Илья Рассадин wrote:
You can resize image with Perl. For example, Imager library can do the
thing. See
https://metacp
Hi!
You can resize image with Perl. For example, Imager library can do the
thing. See
https://metacpan.org/pod/distribution/Imager/lib/Imager/Transformations.pod#scale()
On 7/25/18 4:56 AM, Lauren C. wrote:
Thanks for all kind answers.
I have another question that, though this is maybe hard
On 07/24/2018 09:56 PM, Lauren C. wrote:
Thanks for all kind answers.
I have another question that, though this is maybe hard, I want to
resize batch of images, from the large scale to small one, i.e, this
image:
https://miscnote.net/wp-content/uploads/2018/07/lauren.jpg
(sorry but this is in
Thanks for all kind answers.
I have another question that, though this is maybe hard, I want to
resize batch of images, from the large scale to small one, i.e, this image:
https://miscnote.net/wp-content/uploads/2018/07/lauren.jpg
(sorry but this is indeed me)
currently I use system() in perl t
On 07/24/2018 08:35 AM, Lauren C. wrote:
Hi,
$ perl -le 'system "df -h"'
$ perl -le 'system "df","-h"'
The both two styles work fine.
what's the difference between them and which is better usage?
this is a more technical answer than the others but it may be useful to
you or other readers.
Services
Northwestern University
1800 Sherman Ave.
Suite 6-600 – Box #39
Evanston, IL 60201-3715
darryl.ba...@northwestern.edu<mailto:darryl.ba...@northwestern.edu>
(847) 467-6674
From: "Chas. Owens"
Date: Tuesday, July 24, 2018 at 8:00 AM
To: "Lauren C."
Cc: "beginner
The first spawns a shell and can handle things like globs. This is less
efficient, more powerful, and more dangerous (susceptible to code injection
attacks)
The second does not spawn a shell and therefore cannot handle globs. It is
also less susceptible to code injection attacks.
system "ls *.p
Thanks John and Chas.
I have got it.
Wah.
--- On Fri, 12/6/09, John W. Krahn wrote:
If there are no shell metacharacters
>
>
>
> in the argument,
> it is split into words and passed directly
>
>
Chas. Owens wrote:
On Thu, Jun 11, 2009 at 11:47, Tech W. wrote:
snip
system "command","-a","-b","-c";
snip
In this case Perl runs command directly
snip
system "command -a -b -c";
snip
In this case Perl runs the default shell for the OS and has it run command.
perldoc -f system
syste
Tech W. wrote:
Hi,
Hello,
what's the difference between these two calling for system() function?
system "command","-a","-b","-c";
system "command -a -b -c";
and, which is better?
They both do exactly the same thing.
John
--
Those people who think they know everything are a great
annoya
On Thu, Jun 11, 2009 at 11:47, Tech W. wrote:
snip
> system "command","-a","-b","-c";
snip
In this case Perl runs command directly
snip
> system "command -a -b -c";
snip
In this case Perl runs the default shell for the OS and has it run command.
snip
> and, which is better?
snip
Depends on wha
11 matches
Mail list logo