Foremost
Foremost is a program that recovers files based on their headers , footers and internal data structures. It can be useful when dealing with png images. It can be installed with apt however the source can be found on github. Useful commands: foremost -i file : extracts data from the given file.
Usage
Help
Extract files of type 'gif and pdf' from the file 'img.jpg'