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.
For security I would add one additional caution. When executing a command
wherever possible use the full pathname. To prevent running a malicious file
hidden in your PATH.
Example: “/bin/ls” and not “ls”
Darryl Baker (he/him/his)
Sr. System Administrator
Distributed Application Platform Servic
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