public void removeExifMetadata(final File jpegImageFile, final File dst) throws IOException, ImagingException, ImagingException {
        try (FileOutputStream fos = new FileOutputStream(dst);
                OutputStream os = new BufferedOutputStream(fos)) {
            new ExifRewriter().removeExifMetadata(jpegImageFile, os);
        }
    }
This example illustrates how to add/update EXIF metadata in a JPEG file.

@param jpegImageFile A source image file.
@param dst           The output file.
@throws IOException
@throws ImagingException
@throws ImagingException
src/test/java/org/apache/commons/imaging/examples/WriteExifMetadataExample.java