SLIC icon indicating copy to clipboard operation
SLIC copied to clipboard

BUG: decompression does not restore original BMP file

Open slavchev opened this issue 2 years ago • 1 comments

Steps to reproduce:

slic_conv cat.bmp cat1.slc
slic_conv cat1.slc cat1.bmp

The newly generated cat1.bmp is different than original input cat.bmp. I verify it using compare tool from ImageMagick suite.

compare -verbose -metric AE cat.bmp cat1.bmp diff.bmp
cat.bmp BMP3 480x640 480x640+0+0 8-bit sRGB 256c 308278B 0.010u 0:00.002
cat1.bmp BMP3 480x640 480x640+0+0 8-bit sRGB 256c 308278B 0.000u 0:00.002
Image: cat.bmp
  Channel distortion: AE
    red: 289
    green: 289
    blue: 289
    all: 289
cat.bmp=>diff.bmp BMP3 480x640 8-bit sRGB 1.17201MiB 0.060u 0:00.013

cat.zip

slavchev avatar Oct 21 '23 16:10 slavchev

Thanks for finding this and providing the sample image. I will take a look...

bitbank2 avatar Oct 21 '23 19:10 bitbank2