PhotoEdit is a powerful photo editor, its source code is available, it can read, write, and manipulate an image in many image formats (over 38 major formats) including popular formats like TIFF, JPEG, PNG, PCD, PIC, PSD, and GIF.