View Single Post
Old 02-17-2025, 06:36 PM   #31
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
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.

Last edited by KevinH; 02-17-2025 at 07:04 PM.
KevinH is offline   Reply With Quote