The format has a TIFF-image structure. It is generated by Canon cameras. The CR2 photo is stored in an uncompressed form and allows you to edit such settings as white balance, exposure, and other settings for photos that were already taken. It is the successor format to CRW, which was used in previous generation Canon SLR cameras.
PGM is a storage format for grayscale images. Files in this format can be opened using software: ACDSee Photo Manager 14, ACD Systems Canvas 15, Corel PaintShop Pro X4. This type of file can be edited with a text editor. PGM files can be in two versions: P2 / P5. P2 are readable, P5 - to binary formats.