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.
s@perl.org"
Subject: Re: about system() call
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
als
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
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?
thanks.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.pe
On 3/13/07, Paul <[EMAIL PROTECTED]> wrote:
On Tue, March 13, 2007 2:38 am, yitzle wrote:
> Where you doing "rm -f $file" or `rm -f $file`?
> You need to use "backticks" for system commands.
If memory serves me, back ticks are only needed inside a system command
for UNIX commands and regular tic
On Tue, March 13, 2007 2:38 am, yitzle wrote:
> Where you doing "rm -f $file" or `rm -f $file`?
> You need to use "backticks" for system commands.
If memory serves me, back ticks are only needed inside a system command
for UNIX commands and regular ticks specifying the system command within
the Pe
On Tue, 2007-03-13 at 02:29 -0400, Mathew wrote:
> I recently forgot about the unlink function and had been trying to
> remove files using the less efficient system call to run "rm -f
> /path/to/files". I found, however, that this didn't work at all.
>
> I've since replaced it with unlink and get
Hello,
1. Check that the "rm" command is not mapped to "rm -i" or
similar alias.
if so them the "rm -f" command from system() command will not
work.
Thanx
Madan
Mathew wrote:
I recently forgot about the unlink function and had been trying to
remove files using the less effic
Where you doing "rm -f $file" or `rm -f $file`?
You need to use "backticks" for system commands.
On 3/13/07, Mathew <[EMAIL PROTECTED]> wrote:
I recently forgot about the unlink function and had been trying to
remove files using the less efficient system call to run "rm -f
/path/to/files". I fo
>
>I recently forgot about the unlink function and had been trying to
>remove files using the less efficient system call to run "rm -f
>/path/to/files". I found, however, that this didn't work at all.
>
>I've since replaced it with unlink and get the results one can expect to
>get so it isn't a m
I recently forgot about the unlink function and had been trying to
remove files using the less efficient system call to run "rm -f
/path/to/files". I found, however, that this didn't work at all.
I've since replaced it with unlink and get the results one can expect to
get so it isn't a matter of
15 matches
Mail list logo