Compress the .img file using XZ compression at level nine (-9), using threads, and keeping (-k) the original file:

xz -k -9v --threads=0 saber-0.2.img

Then confirm the integrity of that file using the -t or test flag:

xz -tv saber-0.2.img.xz