Unhandled Exception type ImageProcessingException...what is this error about?
in
Contributed Library Questions
•
2 years ago
I'm quickly trying to get the exif/xmp data out of some jpeg's (i have checked that the data does exist within the file using a hex editor, although it's not even getting to the run stage). On pressing run on the processing IDE i get the above error. The code doesn't run so i guess it's some precompile or more likely preprocessor. The code is super simple testpiece to prove it works (haha) before i moved it into my main application.
- import com.drew.imaging.*;
- import com.drew.imaging.jpeg.*;
- import com.drew.metadata.*;
- import com.drew.metadata.exif.*;
- import com.drew.metadata.iptc.*;
- import com.drew.metadata.jpeg.*;
- void setup() {
- size(200, 200);
- background(50);
- fill(200);
- }
- void draw() {
- File jpegFile = new File("09000d5d822c7ed2.jpg");
- try
- {
- Metadata metadata = ImageMetadataReader.readMetadata(jpegFile);
- }
- catch (JpegProcessingException ex)
- {
- println("Ouch! " + jpegFile.getName());
- }
- }
I've seen this used elsewhere in processing forums. I dragged the com.drew jar files onto the IDE.
What does it all mean????
thanks in advance if you can help.
nik
1