# Convert > [HTML Version](convert_aui_image.htm) **xcall AUI, AUI\_IMAGE,IMGOP\_SAVEAS, handle, status, fspec, comp** IMGOP\_SAVEAS takes a previously loaded image—specified by _handle_—and saves it to the specified _fspec_, converting the format in accordance with the extension in the _fspec_ and the _comp_ options. For example, you could use this opcode to load a 24 bit color BMP and save it as an 8 bit grayscale PNG with the "Ink Saver" transformation. In fact, the print screen utility (APRNTSCRN.SBX) now uses this technique to process changes in the image attributes, which is faster than taking a new screen picture. See [Status Codes](statuscodes_aui_image.htm.md) for the possible returned status values, and [IMGOP\_ACQUIRE](acquire.htm.md) and [IMGOP\_CAPTURE](capture_screen.htm.md) for definitions of the _comp_ options applicable to the supported image extensions/formats (JPG, TIF, BMP, PCX, PNG). Also see the sample program [IMAGE in EXLIB:\[908,32\]](https://bitbucket.org/microsabio/exlib/src/master/908032/image.bp) for a complete example. **History** 2011 May, A-Shell 5.1.1215: Function added to A-Shell