rbhyland has asked for the wisdom of the Perl Monks concerning the following question:
I am running the code below. I want to flip the file passed in Slide_name. The mogrify command between the backticks looks correct to me, but it doesn't seem to do anything. What am I doing wrong? Appreciate any suggestions...
#!/usr/bin/perl -w use strict; use warnings; use Image::Magick; use CGI::Carp qw(fatalsToBrowser); use CGI::Pretty; use CGI qw(:standard :cgi-lib -debug fatalsToBrowser warningsToBrowser +); my $cgi = new CGI; print $cgi->header; print start_html; my $slide_name = "../".param('slide_name'); print "$slide_name",br; print img({-src=>"$slide_name"}),br; `/usr/bin/mogrify -flip $slide_name`; print img({-src=>"$slide_name"}),br; #print redirect(referer()); print end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mogrify not working
by onelander (Sexton) on Mar 02, 2014 at 19:48 UTC | |
by rbhyland (Acolyte) on Mar 02, 2014 at 19:53 UTC | |
by rbhyland (Acolyte) on Mar 02, 2014 at 19:57 UTC | |
by kcott (Archbishop) on Mar 02, 2014 at 23:14 UTC | |
by rbhyland (Acolyte) on Mar 02, 2014 at 20:01 UTC | |
by kcott (Archbishop) on Mar 02, 2014 at 23:22 UTC | |
by onelander (Sexton) on Mar 02, 2014 at 20:05 UTC |