Handle PCX images with an odd stride #5214
The PCX specification states that 'BytesPerLine' 'MUST be an EVEN number.'
This may not be uncommon, since it has been noted in an earlier issue
The images started to fail after #5174 (ping @wiredfool) abandoned the image's reported stride in favour of calculating it ourselves. This PR relaxes that slightly, by allowing the reported stride to tell us whether this is a well-formed image with an even stride, or a malformed image with an odd stride.
If the thinking is that we should just reject the malformed images, then this can be closed.
The text was updated successfully, but these errors were encountered: