@chr@cybre.space to avoid corrupting the image header, try converting it to a header-less RAW first, then converting the result back
did this one in audacity a long time ago but i didn't write down what i used D: https://computerfairi.es/media/wUOlX4SxF9aJWPGG15w