Active Directory can store images in JPEG File Interchange Format (JFIF) according to the jpegPhoto Attribute definition. I’d like to use this but I’d never heard of JFIF.
First, are all JPEG files JFIFs?
Second, does a WPF JpegBitmapEncoder produce a JFIF file? I guess if the first is true, this will be but if it’s not…?
JPEG = the compression algorithm (Joint Photographic Experts Group)
JFIF = the file format (JPEG File Interchange Format)
Effectively when you mention jpeg/jpg you are actually talking about JPEG/JFIF, although there is a spec for JPEG/TIFF and JPEG/EXIF (usually digital photos is where you’ll see these)
A lot of the time whatever produces the EXIF file will also include what JFIF parsers need to decode properly, so it is transparent to the end user, but not entirely a “valid” and “to spec” EXIF file.
For internet use and transmission the default is JFIF, but not all jpegs are necessarily JFIF when you look under the covers.