unipdf
unipdf copied to clipboard
pdf_describe doesn't handle 4 bpc images
At the moment we are only supporting BitsPerComponent = 8, i.e. 1 byte per component. Other values appear to be rather uncommon and this is one of few cases that have come up through extensive tests.
Obviously we would like to handle this also. Therefore the task at hand is to extend the support to handle other BitsPerComponent.
An easy way to go about this might be to use package model/sampling's ResampleBytes function which is designed for this kind of purpose.
Will assign this to myself for further investigation.
That sounds like the right approach
Related #260
@peterwilliams97 This should be resolved now in newest unipdf versions.