Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: mogrify not working

by onelander (Sexton)
on Mar 02, 2014 at 19:48 UTC ( #1076733=note: print w/ replies, xml ) Need Help??


in reply to mogrify not working

A few points. Are you sure that slide_name is being passed? You may want to save the mogrify command output to a variable and look at what is returns.

my $ret = `/usr/bin/mogrify -flip $slide_name`; print "\n" . $ret . "\n";


Comment on Re: mogrify not working
Download Code
Replies are listed 'Best First'.
Re^2: mogrify not working
by rbhyland (Novice) on Mar 02, 2014 at 19:53 UTC
    I have printed the slide_name and it is OK. I printed the mogrify command without any parameters and got its explanatory usage text. When I print the before and after images there is no change.
Re^2: mogrify not working
by rbhyland (Novice) on Mar 02, 2014 at 19:57 UTC
    I tried your code and it worked! But only once. When I ran the script again it didn't flip the picture back. ?!
      "I tried your code and it worked! But only once. When I ran the script again it didn't flip the picture back. ?!"

      It's possible the image is being cached: what's displayed in the browser may just be a copy of what was displayed from the last run. Check the actual file on disk to see if it's being flipped between runs.

      If it is a caching issue, you may need to set a short expiration date. See CGI: CREATING A STANDARD HTTP HEADER for details.

      -- Ken

Re^2: mogrify not working
by rbhyland (Novice) on Mar 02, 2014 at 20:01 UTC
    Printing $ret gives nothing at all.
      "Printing $ret gives nothing at all."

      See perlop: Quote-Like Operators for information about what's returned by `...` and how to change it.

      -- Ken

      I just ran that mogrify command and it does not return anything if it appears to run correctly.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1076733]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (15)
As of 2015-07-07 22:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls