Example 3 Resize a TIFF

In this example we illustrate how to resize a multi-page TIF file. A single page TIF file is similar to Example 1 and Example 2 already discussed.

Specify the source (/S) and output files (/T). Specify the special process (/P2) for Resize Image. Resize the image with a Width of 50, a height of 102, use Billinear interpolation (/a, /b and /c). Show status of command line with on-screen confirmation (/V).

 

ConvertImage.EXE /S C:\Input\Tryme.tif /T C:\Output\Out.tif /P2 /a50 /b102 /c1 /V

In the example above, no pages were specified, so all pages will be done. Furthermore, since no appending was specified, there will be as many output files as there are pages. Let's say we only wanted to do pages 1 and 3 and have a single file output. To accomplish this we need only add the /1 {Pages to do} and /3 {bAppend} switches as shown below:

 

ConvertImage.EXE /S C:\Input\Tryme.tif /T C:\Output\Out.tif /P2 /a50 /b102 /c1 /1 1,3 /3 TRUE /V

 

Now let's say you only wanted to change frame 4's width to 45 pixels in a 10 frame TIF file. That would look something like this:

ConvertImage.EXE /S C:\Input\Tryme.tif /T C:\Output\Out.tif /P2 /c0 /1 1-3 /3 TRUE

 

ConvertImage.EXE /S C:\Input\Tryme.tif /T C:\Output\Out.tif /P2 /c0 /1 4 /3 TRUE /a45

 

ConvertImage.EXE /S C:\Input\Tryme.tif /T C:\Output\Out.tif /P2 /c0 /1 5-10 /3 TRUE

 

Notice that by not specifying both the width and height that no transformation will occur on those frames specified. It becomes merely a means to append frames.

 

Examples:

Example 1 Resize a JPG File

Example 2 Resize an Image File and Retain Aspect Ratio

See Also:

Command Line Examples

Helpful Hints for Creating a Command Line

P2 Resize an Image