So I have a corrupted PNG file (that I don't want to convert to JPG, etc. It has to be basically the same.) and I checked its first eight bytes (signature):
8950 4e47 0d0a b0aa
The actual signature for a PNG file is:
8950 4e47 0d0a 1a0a
How can I change the signature of my corrupted file?
Using hexedit you can manipulate your files. For that simply follow these steps:
Update
To install hexedit run following command on terminal:
sudo apt-get install hexedit
For more info take a look at this blog post.