public void removeXmpXml(final File src, final OutputStream os) throws ImagingException, IOException {
        final ByteSource byteSource = ByteSource.file(src);
        removeXmpXml(byteSource, os);
    }
Reads a JPEG image, removes all XMP XML (by removing the APP1 segment), and writes the result to a stream.

@param src Image file.
@param os  OutputStream to write the image to.
@see java.io.File
@see java.io.OutputStream
@throws ImagingException if it fails to read the JFIF segments
@throws IOException      if it fails to read or write the data from the segments
src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegXmpRewriter.java