homepage Welcome to WebmasterWorld Guest from 23.23.8.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
running imagemagick from the command line
nippi

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4672239 posted 1:47 pm on May 19, 2014 (gmt 0)

Wondering if this is possible.

client has laoded 8000 images, all with massive white space to uplaods folder and sub folders
i need to trim them.
its a wordpress site.

had hoped to find a plugin, but seems i need to run a command.

Possible? From command line?

its a one shot deal, just need to run it once.

 

Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4672239 posted 1:56 pm on May 19, 2014 (gmt 0)

oh, you could go that route. I have used Image Magick a bit (some code buried here in fact) and it is certainly possible to do what you want. I'd probably go the route of a perl script driver to do that instead of driving it from the command line.

Another easier way I think, would be to fire up a image program like PaintShopPro under windows and use the 'batch command' to trim all the photos.

phranque

WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 4672239 posted 9:08 pm on May 19, 2014 (gmt 0)

you can certainly do this with ImgeMagick - Cutting and Bordering -- IM v6 Examples:
http://www.imagemagick.org/Usage/crop/ [imagemagick.org]

as well as probably GIMP...

on windows you could do batch/bulk cropping with IrfanView.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved