nhwcodec icon indicating copy to clipboard operation
nhwcodec copied to clipboard

Distorted image

Open arun54321 opened this issue 4 years ago • 5 comments

source image - https://i.ibb.co/JHRngPN/src.jpg decoded image - https://i.ibb.co/3S2G73c/srcDEC.jpg

arun54321 avatar Mar 25 '21 08:03 arun54321

Hello,

I can not reproduce the bug for now (the part of the image shifted to the left) , I'm on Windows.But I also did not try all the encoder settings, can you give me your command line that leads to this bug? -Also very unlikely, be sure that your bitmap source image has a 54-bytes header...-

Many thanks for testing NHW. Cheers, Raphael

rcanut avatar Mar 25 '21 10:03 rcanut

I didn't use any settings.

nhw_encoder  1.bmp 
hw_decoder 1.nhw

I have used imagemagick to resize and crop the image to 512x512. convert ~/Pictures/wallhaven-ymogyx.png -resize x512 -gravity center -crop 512x512+0+0 /tmp/1.bmp

arun54321 avatar Mar 25 '21 10:03 arun54321

The bmp file which I use. https://0x0.st/-qtu.zip

arun54321 avatar Mar 25 '21 10:03 arun54321

Yes, it's that special type of bitmap file that is not handled by NHW.Supported bitmap input images must have a 54-bytes header, in short, size of the input 512x512 24bits bitmap image must be 786486 bytes.

If you are under windows, you can use Paint for example, to save (as bitmap 24bits) your initial unsupported bitmap image and so convert it to the supported one.

Hope it could help. Cheers, Raphael

rcanut avatar Mar 25 '21 11:03 rcanut

Okay.

arun54321 avatar Mar 25 '21 11:03 arun54321