Skip to content

Image Type Conversion

fermigas edited this page Oct 13, 2018 · 1 revision

Table of Contents

Description

LTVT is only able to open and display images in two formats: JPEG (.JPG) and Windows Bitmaps (.BMP). Lunar images in other formats (*.TIF, *.PNG, etc.) need to be converted into one of these before they can be used with LTVT.

Details

JPEG vs. BMP

LTVT operations involve only the pixel dimensions of the frame and pixel locations of the two reference points used for calibration. These are the same, independent of the image format; so to switch between the two formats it is only necessary to alter the filename extension in the calibration file.

Saving/converting images to the JPEG format is preferable for those concerned with conserving disk space. The resulting files are quite compact, but there is some loss of detail and introduction of artifacts depending on the level of compression chosen. For a given number of pixels, JPEG images also take slightly longer to load since LTVT has to de-compress them to the bit-map format used in memory.

Saving/converting images to BMP format produces much larger disk files, but has the advantage that all details of the original image are preserved with perfect fidelity. For a given number of pixels, BMP images also load faster than JPEG's because they can be loaded directly into memory without decompression.

Converting Single Files

Nearly any image viewing software, including the Windows Picture/Fax Viewer can be used for converting individual frames. This typically involves a Load... operation (for the original image) followed by a Save as... operation in which the desired image file type is specified. For example, in the Windows Picture/Fax Viewer, after loading the original image, you click the floppy disk icon at the bottom of the viewing window, and then choose "JPEG" or "BMP" under "Save as type".

Batch Conversion

If you wish to convert a large number of images to JPEG or BMP format, a software with a batch conversion capability is helpful.

A good freeware program is Irfan Skiljan's freeware IrfanView.

The batch conversion utility in IrfanView is accessed under Files...Batch conversion/rename... Here is a screenshot of the window this brings up (note that this is from IrfanView -- it is not part of LTVT):

IrfanViewBatchConversionWindow-annotated.JPG

  1. Specify the folder containing the original images.
  2. Indicate the extension of the files you want to convert. The display in Section (1) should list just the files of the type you specify.
  3. Specify where you want the converted files to be placed ("Use this directory as output" selects the source directory).
  4. Choose the "Batch conversion" option. The original files will be preserved, and the new ones created.
  5. Select JPEG or BMP as the new format.
  6. These buttons provide a means of transferring file names from the list in Section (1) to the Input files list on the left (which are the files that will actually be converted). "Add all" is often a good choice, but you can also highlight file names in Section (1) and use the "Add" button to add just the highlighted files. Clicking on any name in Section (1) will highlight it. CTRL-click will highlight additional individual files, and SHIFT-click will highlight the block of files from the starting point to the point of the final click.
  7. When the panel on the left shows the names of all the files you wish to convert, click "Start" and the new images in the requested format will be created.

This page has been edited 4 times. The last modification was made by - JimMosher JimMosher on Jun 17, 2008 12:26 pm

Clone this wiki locally