Image Processing Toolbox    

Converting the Graphics File Format of an Image

Sometimes you will want to change the graphics format of an image, perhaps for compatibility with another software product. You can do this by reading in the image with imread, and then calling imwrite with the appropriate format setting specified. For example, to convert an image from a BMP to a PNG, read the BMP image using imread, convert the storage class if necessary, and then write the image using imwrite, with 'PNG' specified as your target format. For the specifics of which bit depths are supported for the different graphics formats, and for how to specify the format type when writing an image to file, see the reference entries for imread and imwrite.


 Converting The Storage Class of Images Coordinate Systems