Bug 582478 - Invalid Image exception, yet image loads elsewhere
Summary: Invalid Image exception, yet image loads elsewhere
Status: NEW
Alias: None
Product: Incubator
Classification: Eclipse Project
Component: e4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: E4 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-26 19:21 EDT by Wojtek Bok CLA
Modified: 2023-09-26 19:21 EDT (History)
0 users

See Also:


Attachments
Marginal Image File (417.73 KB, image/jpeg)
2023-09-26 19:21 EDT, Wojtek Bok CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wojtek Bok CLA 2023-09-26 19:21:24 EDT
Created attachment 289189 [details]
Marginal Image File

I am reading a series of JPG images from a security camera. The camera writes over a WiFi connection that is sometimes flaky.

I use the following line to create an Image instance:

new Image( ivCanvas.getDisplay(), fileName )

Occasionally I get an "Invalid Image" exception. I have a try/catch for this.

Yet, if I take the same file and open it with another program, the file loads and displays, though not cleanly. The error message I usually get is:
"Unsupported Marker Type"

I know that the file is not pristine, hence the errors. I have attached the file.

Can the Image class be modified to accept marginal images?