Code: Select all
Magick::Image img;
// do something here to populate img
img.write( "test.jpg" );
What if the write was to "test.png": Is there a way to specify the compression level? Adam7 interlacing? Timestamp? Comment?
I'm assuming that write() gets the file format to use from the filename, because I don't see a parameter in write() to indicate the file format to use. But obviously I'm missing part of the API because I'm certain there must be a way to specify parameters to use when saving images.