When you need to change image file formats from tiff to png, png to tiff or others by command line, software VeryPDF OCR to Any Converter is worthy trying. By this software, you can fulfill image to image conversion and this software supports the following image file formats: JPEG, JPG, PNG, BMP, GIF, PCX, TGA, PBM, PNM, PPM, tiff and others. In the following part, I will show you how to use it.
Step 1. Get one copy of OCR to Any Converter CMD
- All the VeryPDF software are free trying and free downloading, so you can download one copy and follow my steps to test this software. Once downloading finishes, it is an zip file. Please extract it to some folder then you can call the executable file in MS Dos Windows.
- This command line version only can works under Windows system. If you need to use this software under Mac system, please use the GUI Mac version.
Step 2. Convert tiff to png and specify width and height
- Usage: ocr2any.exe [options] <PDF-file> <Text-file>
- When you need to change image file formats and specify width and height, please refer to the following command line templates.
ocr2any.exe -imageopt -resizewidth 800 -resizeheight 600 C:\in.gif C:\out.tga
ocr2any.exe -imageopt -resizewidth 800 -resizeheight 600 C:\in.tif C:\out.png
By the above command line, we can deskew and despeckle images automatically, so before conversion this software will help you make the input gif file clear and straight. Meanwhile, you can specify the output image width and height.
ocr2any.exe -imageopt -flip C:\in.png C:\out.gif
Same with the above command line, this one can help you convert png to gif and flip the image vertically.
ocr2any.exe -imageopt -mirror C:\in.tif C:\out.pcx
By this above command line, we can convert tiff to pcx image file formats and mirror the image horizontally.
ocr2any.exe -imageopt C:\in.bmp C:\out.tif
Same with the above command line templates, this one can help you convert bmp to tiff and deskew and despeckle images automatically.
Now let us check the related parameters:
-imageopt : this parameter can help you deskew and despeckle images automatically. This function is also available when the input file is image or scan PDF file.
-resizewidth <int> :when you need to resize the image's width, please add this parameter. But this parameter is only available when –resizeheight is used.
-resizeheight <int> : This parameter is a pair of –resizewidth, which can resize the image's height. Please use this parameter together with resizewidth or it can not wok.
-flip : flip the image vertically
-mirror : mirror the image horizontally
Now let us check the conversion effect from the following snapshot.
By this method, we can change image file formats and specify width and height by command line. During the using, if you have any question, please contact us as soon as possible.