ERROR: cannot change to unencapsulated representation for pixel data
It seems that the image is compressed. If it uses a JPEG compression scheme you need to register the JPEG decompressor code:
- add '#include "djdecode.h"' to your source file
- call 'DJDecoderRegistration::registerCodecs();' at program init
- call 'DJDecoderRegistration::cleanup();' before program exit