Change Tiff to Png image file format and add mirror effect by command line

In this article, VeryPDF will introduce one method about change tiff file format to png and add mirror effect by command line. And this method also can be used to change other image file formats like JPEG, PNG, BMP, GIF, PCX, TGA, PBM, PNM, PPM files. Meanwhile during the conversion, you can also resize image width and height. As this is command line version software, you can also call it together with other applications like C#, VB, VC  and others. In the following part, I will show you how to make it work.

Step 1. Download OCR to Any Converter Command Line

  • OCR to Any Converter Command Line can be used to convert scanned PDF, TIFF and Image files (JPEG, JPG, PNG, BMP, GIF, PCX, TGA, PBM, PNM, PPM) to editable Word and other editable file formats. Meanwhile this software also can help you change image file formats from one to another. If you need to know more about this software, please visit its homepage.
  • Once downloading finishes, there will be an zip file. Please extract it to some folder then you can call the executable file in MS Dos Windows.

What is mirror image effect?
A mirror image is a reflected duplication of an object that appears identical but reversed. As an optical effect it results from reflection off of substances such as a mirror or water. It is also a concept in geometry and can be used as a conceptualization process for 3-D structures(quoted from wiki).

Step 2. Convert Tiff to Png and add mirror effect

  • When you run the conversion, please refer to the usage and examples.
  • Usage:   ocr2any.exe [options] <PDF-file> <Text-file>
  • When you change image file formats and add mirror effect, please refer to the following command line templates.
  • ocr2any.exe -imageopt –mirror  C:\in.tiff C:\out.png
    By this command line, we can deskew and despeckle input image tiff file and then convert it to png and add mirror effect.
    Please check the conversion effect from the following snapshot.
    -mirror effect
    And here are more examples for your reference.
    ocr2any.exe -imageopt -rotate 90 C:\in.png C:\out.tif
    ocr2any.exe -imageopt -threshold 0 C:\in.tif C:\out.bmp
    ocr2any.exe -threshold 240 C:\in.tif C:\out.bmp
    ocr2any.exe -dither 0 C:\in.bmp C:\out.png
    ocr2any.exe -dither 7 C:\in.bmp C:\out.png
    ocr2any.exe -imageopt -resizewidth 800 -resizeheight 600 C:\in.gif C:\out.tga
    ocr2any.exe -imageopt -flip C:\in.png C:\out.gif
    ocr2any.exe -imageopt -mirror C:\in.tif C:\out.pcx
    Related parameters:
    -mirror                 : mirror the image horizontally
    -flip                        : flip the image vertically

If you need to know more parameters and examples, please check them in readme.txt. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!