The format string used by the -format option of "image create photo" can be uppercase or lowercase when using GIF and PPM formats. The PNG parser accepts only lowercase.

BTW: The Img extension allows upper- and lowercase, too.