saveAttributes method

Future<void> saveAttributes()

Save the tag data into the original image file. This is expensive because it involves copying all the data from one file to another and deleting the old file and renaming the other. It's best to set all attributes to write and make a single call rather than multiple calls for each attribute.

Note: if the "fromBytes" constructor is used you will have to use the "imageData" method to retrive the modified image

Note2: after calling this method, any attempts to obtain range information from the image will throw IllegalStateException, since the offsets may have changed in the newly written file.

Implementation

Future<void> saveAttributes() => channel.invokeMethod("saveAttributes");