Mercurial > hg > digilib-old
comparison servlet/src/digilib/image/ImageWorker.java @ 570:fd2ef7e46119
more cleanup, set version to 1.8.2
author | robcast |
---|---|
date | Tue, 21 Dec 2010 20:24:09 +0100 |
parents | 8beefd1142b2 |
children | dad720e9b12b |
comparison
equal
deleted
inserted
replaced
569:1f666c2b4578 | 570:fd2ef7e46119 |
---|---|
31 } | 31 } |
32 | 32 |
33 /** | 33 /** |
34 * render and return the image | 34 * render and return the image |
35 */ | 35 */ |
36 @Override | |
37 public DocuImage call() throws FileOpException, IOException, ImageOpException { | 36 public DocuImage call() throws FileOpException, IOException, ImageOpException { |
38 | 37 |
39 logger.debug("image worker starting"); | 38 logger.debug("image worker starting"); |
40 long startTime = System.currentTimeMillis(); | 39 long startTime = System.currentTimeMillis(); |
41 | 40 |
71 + scaleXY); | 70 + scaleXY); |
72 } | 71 } |
73 | 72 |
74 docuImage.loadSubimage(jobinfo.getFileToLoad(), loadRect, (int) subsamp); | 73 docuImage.loadSubimage(jobinfo.getFileToLoad(), loadRect, (int) subsamp); |
75 | 74 |
76 logger.debug("SUBSAMP: " + subsamp + " -> " + docuImage.getWidth() | 75 logger.debug("SUBSAMP: " + subsamp + " -> " + docuImage.getSize()); |
77 + "x" + docuImage.getHeight()); | |
78 | 76 |
79 docuImage.scale(scaleXY, scaleXY); | 77 docuImage.scale(scaleXY, scaleXY); |
80 | 78 |
81 } else { | 79 } else { |
82 // else load and crop the whole file | 80 // else load and crop the whole file |