Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Recursive image processing (with ImageMagic)

by Cody Fendant (Friar)
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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005247]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-02-21 03:47 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (307 votes). Check out past polls.