public void writeIptc(final File src, final OutputStream os, final PhotoshopApp13Data newData) throws ImagingException, IOException, ImagingException {
        final ByteSource byteSource = ByteSource.file(src);
        writeIptc(byteSource, os, newData);
    }
Reads a JPEG image, replaces the IPTC data in the App13 segment but leaves the other data in that segment (if present) unchanged and writes the result to
a stream.

@param src     Image file.
@param os      OutputStream to write the image to.
@param newData structure containing IPTC data.
@throws ImagingException if there are more than one Photoshop App13 segment, or if the Photoshop segment cannot be parsed
@throws IOException      if it fails to read from the origin byte source, or to write to the target byte source
@throws ImagingException if it fails to write the target image
src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java