Class ImageConverter

java.lang.Object
org.apache.openmeetings.core.converter.BaseConverter
org.apache.openmeetings.core.converter.ImageConverter

@Component public class ImageConverter extends BaseConverter
  • Constructor Details

    • ImageConverter

      public ImageConverter()
  • Method Details

    • convertImage

      public org.apache.openmeetings.util.process.ProcessResultList convertImage(BaseFileItem f, org.apache.openmeetings.util.StoredFile sf, Optional<DoubleConsumer> progress) throws IOException
      Throws:
      IOException
    • convertImage

      public org.apache.openmeetings.util.process.ProcessResultList convertImage(BaseFileItem f, org.apache.openmeetings.util.StoredFile sf, org.apache.openmeetings.util.process.ProcessResultList logs, Optional<DoubleConsumer> progress) throws IOException
      Throws:
      IOException
    • convertImageUserProfile

      public org.apache.openmeetings.util.process.ProcessResultList convertImageUserProfile(File file, Long userId) throws Exception
      Throws:
      Exception
    • resize

      public org.apache.openmeetings.util.process.ProcessResult resize(File in, File out, Integer width, Integer height, boolean max) throws IOException
      Throws:
      IOException
    • convertDocument

      public org.apache.openmeetings.util.process.ProcessResultList convertDocument(FileItem f, File pdf, org.apache.openmeetings.util.process.ProcessResultList logs, Optional<DoubleConsumer> progress) throws IOException
      Converts PDF document to the series of images
      Parameters:
      f - - FileItem object to write number of pages and size
      pdf - - input PDF document
      logs - - logs of the conversion
      Returns:
      - result of conversion
      Throws:
      IOException - in case IO exception occurred