Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Recursive image processing (with ImageMagic)

by Cody Fendant (Pilgrim)
on Nov 23, 2012 at 10:50 UTC ( #1005247=note: print w/ replies, xml ) Need Help??


in reply to Recursive image processing (with ImageMagic)

I have to admit, if I'd already installed ImageMagick the binary and could do

convert --whatever --options path/to/file path/to/otherfile
from the command line, I'd just do this with File::Find and a call to system() in the found sub.

Ugly, and scary, but quick.


Comment on Re: Recursive image processing (with ImageMagic)
Select or Download Code
Re^2: Recursive image processing (with ImageMagic)
by ColonelPanic (Friar) on Nov 23, 2012 at 11:23 UTC
    The easy solution is always worth a try, but in this case I'd be worried that the overhead of calling and starting up the external program would be prohibitive for millions of files.


    When's the last time you used duct tape on a duct? --Larry Wall
Re^2: Recursive image processing (with ImageMagic)
by wvick (Novice) on Nov 23, 2012 at 17:47 UTC

    Ugly yes, and I'm not sure it would be quick given millions of PNG images. Also, on Windows, would system() pop up a new console window? If so, my PC would be pretty unusable during the processing with literally millions of windows popping up! I just get the feeling that memory would leak somewhere and the process would not complete.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2014-10-01 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (29 votes), past polls