Class ExtractJpegSegmentTool

java.lang.Object
com.drew.tools.ExtractJpegSegmentTool

public class ExtractJpegSegmentTool extends Object
Extracts JPEG segments and writes them to individual files.

Extracting only the required segment(s) for use in unit testing has several benefits:

  • Helps reduce the repository size. For example a small JPEG image may still be 20kB+ in size, yet its APPD (IPTC) segment may be as small as 200 bytes.
  • Makes unit tests run more rapidly.
  • Partially anonymises user-contributed data by removing image portions.