How to stretch image proportionally?

fCoder Home - Image Converters - 2GIF

Use "-prop" option to stretch image proportionally

Here are two examples of using -prop option:

1. You may specify only width or height of output file - the program will calculate the other dimension, so that image will be stretched proportionally.

Example:

If you have image with 2000 pixels width and 1500 pixels height, you may specify the output image width as 200 and use the -prop option. The output file height will be 150 in this case.

2. You may specify both width and height of output image and use the -prop option. The dimensions you specify will be used as output file width and height limits.

Example:

If you have image with 2000 pixels width and 1500 pixels height, you may specify the output image width and height as 200 and use the -prop option. The output file width will be 200 pixels and height will be 150. If you don't use the -prop option in this case both the output file width and height will be 200.

3. You may use option -propfill as well.

Example:

If you have image with 2000 pixels width and 1500 pixels height, you may specify the output image width and height as 200 and use the -propfill option. The output file width will be 200 pixels and height will be 200. Image will be stretched proportionally and empty spaces will be filled with background color specified by -bc option.