Convert image in single commande

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mohamed
Posts: 1
Joined: 2017-05-18T02:41:31-07:00
Authentication code: 1151

Convert image in single commande

Post by mohamed »

hi , I want to convert multiple images in a single command
i want to use CONVERT command with -STRIP and converting all images in single command

Please help me out..

Thanks.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert image in single commande

Post by snibgo »

I'll move this to the Users forum.

Please say what version of IM you are using, on what platform.

A common form of the convert command is:

Code: Select all

convert infile.ext {operation} {operation} {operation} outfile.ext
You can have as many operations as you want: strip, resize, crop and so on.
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Convert image in single commande

Post by Bonzo »

You probably want Mogrify rather than convert: https://www.imagemagick.org/script/mogrify.php

Unless specified Mogrify will overwrite the original files.
Post Reply