imcdonagh / image4j

The image4j library allows you to read and write certain image formats in 100% pure Java.
Other
78 stars 38 forks source link

Skip to the image offset instead of firing an exception #10

Open Schmidor opened 4 years ago

Schmidor commented 4 years ago

If the layer offset is higher than the current byte cound an exception is thrown. I've got some ICOs which could be displayed flawless by others, but fail because they have only 6 layers, but contain place for 8 layers in the header before the first layer begins.