Quote:
Originally Posted by BeckyEbook
I like this idea because I like consistency.
But will the user have a choice?
E.g., whether the mime type “image/jpeg” will change the extension to “.jpg” or “.jpeg”?
Users have their preferences.
I always choose “.jpg”, but someone else may prefer “.jpeg”.
|
No choice, unfortunately. Back in time when we were limited to 8.3 filenames on early DOS and Windows, the 3 letter extension became the norm. So using .jpg instead of .jpeg, and .tif instead of .tiff, etc for older file types that existed back then makes them much more widely accepted by other software today. For example both Adobe Photoshop and Gimp save JPEGs by default to the . jpg extension on Windows and MACs (or at least they used to).
So the plan is to use 3 letter extensions when they exist and only use 4 letter extensions for much more recent filetype extensions that never had a 3 letter variant (ie. xpgt, webm, webp, etc.)
That said, since you build your own you could easily change the table in Misc/MediaTypes.cpp to be what you want.