Conversion of the various image formats are done with the help of the imtools program written for linux in GNU C, for more details check out
the imtools section. The imtools program can convert formats to and from raw format and other common formats, in addition convert images from jpeg to bmp, bmp to jpeg in linux using the libjpeg library. The program can also display images on the screen using OpenGL library.
The software can also do a software edge detection on sobel, prewitt or roberts or any custom edge detection algorithm by specifying its own custom masks.
./imtools source.(jpg|png|bmp) COPY destination.txt
./imtools images/source.jpg COPY images/destination.txt