Get image mimetype
Created: 2012-02-21 17:24:40
Last updated: 2012-02-21 17:24:41
Returns the mimetype of an image.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Descriptions (1)
Returns the mimetype of an image. |
Dependencies (0)
Inputs (1)
Name |
Description |
path |
Path to a file whose mimetype should be found.
|
Processors (5)
Name |
Type |
Description |
extractFits |
workflow |
|
getMimtypeFromExiftool |
xpath |
Xpath Expression/default:fits/default:identification/default:identity[default:tool[@toolname='Exiftool']]/@mimetype |
getFirstElementDFS |
workflow |
|
profileStart |
beanshell |
Scriptimport org.apache.log4j.Logger;
Logger logger = Logger.getLogger("Workflow - Get image mimetype");
logger.info("Reading mimetype");
long startTimestamp = System.nanoTime(); |
profileEnd |
beanshell |
Scriptimport org.apache.log4j.Logger;
Logger logger = Logger.getLogger("Workflow - Get image mimetype");
logger.info("Done reading mimeetype");
long startTimestampLong = Long.parseLong(startTimestamp);
double runtime = (System.nanoTime() - startTimestampLong) * 1.0e-9; |
Beanshells (5)
Name |
Description |
Inputs |
Outputs |
profileStart |
|
|
startTimestamp
|
profileEnd |
|
startTimestamp
|
runtime
|
getFirstElementDFS |
|
input
|
firstElement
|
profileStart |
|
|
startTimestamp
|
profileEnd |
|
startTimestamp
|
runtime
|
Outputs (4)
Name |
Description |
mimetype |
Returns the mimetype of the file.
|
extractFitsRuntime |
Returns the runtime of this workflow in seconds.
|
runtime |
|
fits |
|
Datalinks (8)
Source |
Sink |
path |
extractFits:path |
extractFits:fits |
getMimtypeFromExiftool:xml_text |
getMimtypeFromExiftool:nodelist |
getFirstElementDFS:input |
profileStart:startTimestamp |
profileEnd:startTimestamp |
getFirstElementDFS:firstElement |
mimetype |
extractFits:runtime |
extractFitsRuntime |
profileEnd:runtime |
runtime |
extractFits:fits |
fits |
Coordinations (2)
Controller |
Target |
getFirstElementDFS |
profileEnd |
profileStart |
extractFits |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (0)
None
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