unipdf icon indicating copy to clipboard operation
unipdf copied to clipboard

pdf_describe doesn't handle 4 bpc images

Open peterwilliams97 opened this issue 6 years ago • 4 comments

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.

gunnsth avatar Aug 06 '17 11:08 gunnsth

That sounds like the right approach

peterwilliams97 avatar Aug 07 '17 05:08 peterwilliams97

Related #260

gunnsth avatar Apr 08 '20 13:04 gunnsth

@peterwilliams97 This should be resolved now in newest unipdf versions.

gunnsth avatar Jan 11 '21 17:01 gunnsth