Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Recursive image processing (with ImageMagic)

by Cody Fendant (Hermit)
on Nov 23, 2012 at 10:50 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found