Search in sources :

Example 11 with DocuImage

use of digilib.image.DocuImage in project digilib by robcast.

the class ImageFile method check.

/**
 * Checks the image and sets size and type.
 */
public void check() {
    if (pixelSize == null) {
        try {
            // use the configured toolkit to identify the image
            DocuImage di = DocuImageFactory.getInstance();
            di.identify(this);
        } catch (IOException e) {
        // nothing much to do...
        }
    }
}
Also used : DocuImage(digilib.image.DocuImage) IOException(java.io.IOException)

Aggregations

DocuImage (digilib.image.DocuImage)11 IOException (java.io.IOException)5 DigilibJobCenter (digilib.util.DigilibJobCenter)4 ServletContext (javax.servlet.ServletContext)4 ServletException (javax.servlet.ServletException)4 ImageOpException (digilib.image.ImageOpException)3 File (java.io.File)3 AuthOpException (digilib.auth.AuthOpException)2 ImageWorker (digilib.image.ImageWorker)2 Image (com.itextpdf.text.Image)1 AuthnOps (digilib.auth.AuthnOps)1 AuthzOps (digilib.auth.AuthzOps)1 DigilibServletRequest (digilib.conf.DigilibServletRequest)1 ImageJobDescription (digilib.image.ImageJobDescription)1 AliasingDocuDirCache (digilib.io.AliasingDocuDirCache)1 DocuDirCache (digilib.io.DocuDirCache)1 DocuDirectory (digilib.io.DocuDirectory)1 FileClass (digilib.io.FileOps.FileClass)1 ImageInput (digilib.io.ImageInput)1 DirMeta (digilib.meta.DirMeta)1