comparison servlet/src/digilib/image/ImageWorker.java @ 593:7768ea8f59cf stream

more work on stream input -- cleaning up references to files
author robcast
date Fri, 07 Jan 2011 12:00:10 +0100
parents 73e041c710d3
children a630d0303cce
comparison
equal deleted inserted replaced
592:f7e2b6f29b6d 593:7768ea8f59cf
67 } 67 }
68 scaleXY = subsamp / subf; 68 scaleXY = subsamp / subf;
69 logger.debug("Using subsampling: " + subsamp + " rest " 69 logger.debug("Using subsampling: " + subsamp + " rest "
70 + scaleXY); 70 + scaleXY);
71 } 71 }
72 docuImage.loadSubimage(jobinfo.getFileToLoad(), loadRect, (int) subsamp); 72 docuImage.loadSubimage(jobinfo.getInput(), loadRect, (int) subsamp);
73 logger.debug("SUBSAMP: " + subsamp + " -> " + docuImage.getSize()); 73 logger.debug("SUBSAMP: " + subsamp + " -> " + docuImage.getSize());
74 docuImage.scale(scaleXY, scaleXY); 74 docuImage.scale(scaleXY, scaleXY);
75 } else { 75 } else {
76 // else load and crop the whole file 76 // else load and crop the whole file
77 docuImage.loadImage(jobinfo.getFileToLoad()); 77 docuImage.loadImage(jobinfo.getInput());
78 docuImage.crop((int) loadRect.getX(), (int) loadRect.getY(), 78 docuImage.crop((int) loadRect.getX(), (int) loadRect.getY(),
79 (int) loadRect.getWidth(), (int) loadRect.getHeight()); 79 (int) loadRect.getWidth(), (int) loadRect.getHeight());
80 docuImage.scale(scaleXY, scaleXY); 80 docuImage.scale(scaleXY, scaleXY);
81 } 81 }
82 82