In this article, VeryPDF will introduce one method about change tiff file format to png and add mirror effect by . 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 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.
- 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 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.
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
-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.