se.datadosen.jalbum
Interface ImageProcessor
public interface ImageProcessor
The ImageProcessor implementation does all image processing. It is called once per directory
Responsibilities of the ImageProcessor:
- Create closeup images unless image linking is set to "Link to originals"
- Create thumbnail images
- Apply any image filters in the process, both global and image specific filters
- Call engine.makeSlide() for each processed image if engine.isSlides() is true
- Fire imageProcessingStarted and imageProcessingFinished events
- Respond to operation aborted by user by firing OperationAbortedException
By traversing the files array using c.next(), it is ensured that two threads don't process the same image
processImages
void processImages(AlbumBean engine,
AlbumBean.Counter c,
java.io.File dir,
java.io.File outputDir,
AlbumObject[] objects)
throws java.io.IOException,
OperationAbortedException,
ElementException
- Throws:
java.io.IOException
OperationAbortedException
ElementException
processImage
void processImage(AlbumBean engine,
AlbumObject ao,
java.io.File outputDir)
throws java.io.IOException
- Throws:
java.io.IOException