Class ExifDataProcessor

java.lang.Object
de.xima.fc.transform.image.exif.ExifDataProcessor
All Implemented Interfaces:
IUploadPostProcessor

public class ExifDataProcessor extends Object implements IUploadPostProcessor
Upload postprocessor implementation that adjusts the orientation and clears the metadata of supported images.
  • Constructor Details

    • ExifDataProcessor

      public ExifDataProcessor(Consumer<String> protocolEntryHandler)
      Parameters:
      protocolEntryHandler - handles protocol entries (usually i18n keys) while processing the provided upload
  • Method Details

    • isProcessable

      public boolean isProcessable(IXUpload upload)
      Specified by:
      isProcessable in interface IUploadPostProcessor
      Parameters:
      upload - the source upload
      Returns:
      true if the provided upload can be processed by this processor, false if not.
    • process

      public IXUpload process(IXUpload upload)
      Specified by:
      process in interface IUploadPostProcessor
      Parameters:
      upload - the upload to be procesed
      Returns:
      the resulting data