Package gov.lanl.adore.djatoka.io.reader

Examples of gov.lanl.adore.djatoka.io.reader.DjatokaReader


   * @param input Absolute path to image file to be converted to tiff.
   * @return File object for temporary image file
   * @throws Exception a I/O or Unsupported format exception
   */
  public static File createTempTiff(String input) throws Exception {
    BufferedImage bi = new DjatokaReader().open(input);
    return createTempTiff(bi);
  }
View Full Code Here


            // The TIFF source image (before and after resampling)
            String source = aSource.getAbsolutePath();
            String command;

            source = resampleImage(new DjatokaReader().open(source), tmpFile);

            if (kakadu == null) {
                throw new MojoExecutionException(BUNDLE.get("INGEST_KAKADU_CFG"));
            }
View Full Code Here

        File outFile = null;

        try {
            outFile = File.createTempFile("test1-", ".tif");

            final BufferedImage bufImage = new DjatokaReader().open(TIF);
            final OutputStream outStream = new FileOutputStream(outFile);
            final TIFWriter tifWriter = new TIFWriter();

            tifWriter.write(bufImage, outStream);
            outStream.close();
View Full Code Here

     * @param input Absolute path to image file to be converted to tiff.
     * @return File object for temporary image file
     * @throws Exception a I/O or Unsupported format exception
     */
    public static File createTempTiff(String input) throws Exception {
        BufferedImage bi = new DjatokaReader().open(input);

        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("BufferedImage created with h/w: {}/{}", bi.getHeight(), bi.getWidth());
        }

View Full Code Here

TOP

Related Classes of gov.lanl.adore.djatoka.io.reader.DjatokaReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.