Apple phones in particular include several JPEG images in one image using the Multi-Picture Format standard. This is implemented via a MPF0 object within an APP2 section. If this happens to be the first APP2 section in the file, then pel will return that MPF0 object from getICC instead of the correct ICC section.
PR #21 is open for this now. I'm not able to run the test suite, so I didn't add a test for this. I've uploaded an example picture here, if someone more familiar would like to write a test for it.
Apple phones in particular include several JPEG images in one image using the Multi-Picture Format standard. This is implemented via a MPF0 object within an APP2 section. If this happens to be the first APP2 section in the file, then pel will return that MPF0 object from
getICC
instead of the correct ICC section.I will open a PR shortly with a fix for this.