A Java JAR for creating thumbnails and/or scaled versions of bitmap images (PNG, JPEG), videos and documents (PDF and Markdown) documents. The concrete solutions are wrapped behind an interface. For bitmap images the implementation is based on plain Java2D. See java2/ProviderJava2D.java.
This feature is based on ffmpeg. The Java code of this lib will only call an existing ffmpeg binary
on the machine. The location has to be defined by setting FFMPEG_BIN, e.g. FFMPEG_BIN=/usr/bin/ffmpeg.
Besides input for thumbnail generation, PDF can also be an output format for Markdown documents. This solution is based on danfickle/openhtmltopdf, which is based on Apache PDFBox, that is already used for the PDF to image (thumbnail) feature.
<dependency>
<groupId>com.giraone.imaging</groupId>
<artifactId>imaging-kit</artifactId>
<version>2.0.0</version>
</dependency>- There are a few test images and test documents within
src/test/resources.
- ProviderBitmapImageTest.java - Simple functional tests for bitmap images
- ProviderPdfTest.java - Simple functional tests for PDF documents
- DefaultMarkdownProviderTest.java - Simple functional tests for PDF documents
- JpegScalePerformanceTest.java - A basic performance comparison on the two implementations for bitmap images
See CHANGELOG.md.