|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpedal.examples.images.ExtractClippedImages
public class ExtractClippedImages
Sample code providing a workflow which extracts clipped images and places versions scaled to specific heights It is run using the format java -cp libraries_needed org/jpedal/examples/ ExtractClippedImages $inputDir $processedDir $logFile h1 dir1 h2 dir2 ... hn dirn Values with SPACES but be surrounded by "" as in "This is one value" The values passed are $inputDir - directory containing files $processedDIr - directory to put files in $log - path and name of logfile Any number of h - height required in pixels as an integer for output (-1 means keep current size) dir1 - directory to write out images So to create 3 versions of the image (one at original size, one at 100 and one at 50 pixels high), you would use java -cp libraries_needed org/jpedal/examples/ ExtractScalesImages /export/files/ /export/processedFiles/ /logs/image.log -1 /output/raw/ 100 /output/medium/ 50 /output/thumbnail/ Note image quality depends on the raw image in the original. This can be VERY memory intensive
| Field Summary | |
|---|---|
static boolean |
outputMessages
flag to show if we print messages |
static boolean |
testing
used for regression tests by IDR solutions |
| Constructor Summary | |
|---|---|
ExtractClippedImages(java.lang.String rootDir)
example method to extract the images from a directory |
|
| Method Summary | |
|---|---|
java.lang.String |
getOutputDir()
|
static void |
main(java.lang.String[] args)
main routine which checks for any files passed and runs the demo |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean outputMessages
public static boolean testing
| Constructor Detail |
|---|
public ExtractClippedImages(java.lang.String rootDir)
| Method Detail |
|---|
public java.lang.String getOutputDir()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||