Image Processing Toolbox    

Converting Graphics File Formats

To change the graphics format of an image, use imread to read in the image and then save the image with imwrite, specifying the appropriate format.

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 Image Storage Classes Image Arithmetic