Personal tools

Difference between revisions of "Convert"

From MohidWiki

Jump to: navigation, search
m (1 revision)
Line 8: Line 8:
 
  >FOR %A IN (*.gif) DO convert %A %~nA.eps
 
  >FOR %A IN (*.gif) DO convert %A %~nA.eps
  
==2Convert : Batch file utility==
+
===Resizes an image===
 +
>convert -resize 1024x768 original.jpg resized.jpg
 +
 
 +
==Batch file utility==
 
Here's a nice batch file utility that converts all files from one format to another
 
Here's a nice batch file utility that converts all files from one format to another
 
  ECHO 2convert.bat bmp gif
 
  ECHO 2convert.bat bmp gif

Revision as of 15:05, 6 February 2009

Useful utility found in ImageMagick to convert image formats to other formats ("jpeg"-->"eps", "bmp"-->"gif", ...).

Syntax

Convert a single file

>convert file.gif file.eps

Converts all files in directory

>FOR %A IN (*.gif) DO convert %A %~nA.eps

Resizes an image

>convert -resize 1024x768 original.jpg resized.jpg

Batch file utility

Here's a nice batch file utility that converts all files from one format to another

ECHO 2convert.bat bmp gif
FOR %%A IN (*.%1) DO convert %%A %%~nA.%2

WebBased Utility

In ImageMagick Studio you can perform all actions from a web-based server side interface.

External References