1
Vote

Both jpg/jpeg and tif/tiff extension types produce ImageTypes.Jpeg return

description

I think you have to check your return value for tif/tiff file extensions.Take a look at it in GenericPhotoFile.cs line 99 (rev 80132)public GenericPhotoEnums.ImageTypes ImageType{ get { switch (this.FileExtension) { case ".jpeg": case ".jpg": return GenericPhotoEnums.ImageTypes.Jpeg; case ".tif": case ".tiff": return GenericPhotoEnums.ImageTypes.Jpeg; <- should be GenericPhotoEnums.ImageTypes.Tiff; default: return GenericPhotoEnums.ImageTypes.Unknown; } }}

comments