Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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
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.
      I just ran that mogrify command and it does not return anything if it appears to run correctly.
      "Printing $ret gives nothing at all."

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

      -- Ken

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 drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2014-12-26 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls