Login  Register

Metadata feature extractor and HeadlessException in ImageJ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Metadata feature extractor and HeadlessException in ImageJ

adith090
I have two questions -

1) Is there a way to analyse or extract metadata of images of type jpeg, png, gif, bmp? I need to be able to perform some quantitative analysis on the image metadata.

I am working on a security problem which aims at using exploratory methods to identify malicious images, and I figure that performing some kind of quantitative analysis on the image metadata would be the best way to do it. Is there any plugin/feature that will help me do this?

2) I have written a macro in ImageJ to run "Measurements" on a list of JPEG image files. I am running the code on a remote linux machine in headless mode using headless.jar.

I get the following excpetion -

> java.awt.HeadlessException:  No X11 DISPLAY variable was set, but this
> program performed an operation which requires it.
>         at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
>         at java.awt.Window.<init>(Window.java:433)
>         at java.awt.Frame.<init>(Frame.java:403)
>         at ij.plugin.frame.PlugInFrame.<init>(PlugInFrame.java:13)

How do I override this? Is there a way of preventing ImageJ from opening a graphics environment?

Thanks for the help in advance. :)