fits - TIFF image characterisation - image size, file size, compression
Created: 2014-11-06 17:14:32
Last updated: 2014-11-06 17:34:58
Extracts image width, image height, file size, and validity and compression type of a tiff image.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
fits - TIFF image characterisation - image size, file size, compression |
Descriptions (1)
Extracts image width, image height, file size, and validity and compression type of a tiff image. |
Dependencies (0)
Inputs (1)
Name |
Description |
source_path |
Path to the source image
|
Processors (7)
Name |
Type |
Description |
fits |
externaltool |
|
image_height |
xpath |
Xpath Expression/default:fits/default:metadata/default:image/default:imageHeight[@toolname='Jhove'] |
image_width |
xpath |
Xpath Expression/default:fits/default:metadata/default:image/default:imageWidth[@toolname='Jhove'] |
file_size |
xpath |
Xpath Expression/default:fits/default:fileinfo/default:size[@toolname='Jhove'] |
compression_scheme |
xpath |
Xpath Expression/default:fits/default:metadata/default:image/default:compressionScheme[@toolname='Jhove'] |
Beanshell |
beanshell |
ScriptString compression_type = "";
if ("Uncompressed".equals(compression_scheme)) {
compression_type = "none";
} else if ("CCITT 1D".equals(compression_scheme) || "T4/Group 3 Fax".equals(compression_scheme) || "T6/Group 4 Fax".equals(compression_scheme) || "LZW".equals(compression_scheme) || "Adobe Deflate".equals(compression_scheme) || "JBIG".equals(compression_scheme) || "PackBits".equals(compression_scheme) || "Deflate".equals(compression_scheme)) {
compression_type = "lossless";
} else if ("JPEG (old-style)".equals(compression_scheme) || "JPEG".equals(compression_scheme)) {
compression_type = "lossy";
}
|
validity |
xpath |
Xpath Expression/default:fits/default:filestatus/default:valid[@toolname='Jhove'] |
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
Beanshell |
|
compression_scheme
|
compression_type
|
Outputs (7)
Name |
Description |
jpylyzer_STDOUT |
STDOUT of jpylyzer
|
jpylyzer_STDERR |
STDERR of jpylyzer
|
image_height |
The vertical height of a digital image in pixel
|
image_width |
The horizontal width of a digital image in pixel
|
file_size |
Size of the digital object in bytes
|
compression_type |
Indicates whether the format of the object is valid
|
validity |
Indicates whether the format of the object is valid
|
Datalinks (14)
Source |
Sink |
source_path |
fits:source_path |
fits:STDOUT |
image_height:xml_text |
fits:STDOUT |
image_width:xml_text |
fits:STDOUT |
file_size:xml_text |
fits:STDOUT |
compression_scheme:xml_text |
compression_scheme:firstNode |
Beanshell:compression_scheme |
fits:STDOUT |
validity:xml_text |
fits:STDOUT |
jpylyzer_STDOUT |
fits:STDERR |
jpylyzer_STDERR |
image_height:firstNode |
image_height |
image_width:firstNode |
image_width |
file_size:firstNode |
file_size |
Beanshell:compression_type |
compression_type |
validity:firstNode |
validity |
Uploader
Component Validity
Loading
License
All versions of this Workflow are
licensed under:
Version 3 (latest)
(of 3)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (1)
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment