There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

how would you improve this file extension list

(btw yes you can add new categories)

if you could standardise one file format for a task, what would it be:

  1. photos .jxl
  2. open domain image data .exr
  3. videos .av1
  4. lossless audio .flac
  5. lossy audio .opus
  6. subtitles srt/ass
  7. fonts .otf
  8. container mkv (doesnt contain .jxl)
  9. plain text utf-8 (many also say markup but disagree on the implementation)
  10. documents .odt
  11. archive files .tar.zst (this one is causing a bloodbath so i picked randomly)
  12. configuration files toml
  13. typesetting typst
  14. interchange format .ora
  15. models .gltf / .glb
  16. daw session files .dawproject
  17. otdr measurement results .xml
Synthead ,
jackpot OP ,
@jackpot@lemmy.ml avatar

i dknt understand

Synthead ,

The Freedesktop Foundation has already categorized a ton of stuff and more.

jackpot OP ,
@jackpot@lemmy.ml avatar

could you link the index apologies

Synthead ,

Here’s the repo: gitlab.freedesktop.org/xdg/shared-mime-info

Here’s the current XML for the metadata: gitlab.freedesktop.org/…/freedesktop.org.xml.in

jackpot OP ,
@jackpot@lemmy.ml avatar

mate i am so confused sorry

Synthead ,

Here’s an example of a PNG:

gitlab.freedesktop.org/…/freedesktop.org.xml.in#L…

This says that PNG files…

  • Have a mime type of image/png
  • Have a full name of "PNG image"
  • Have an acronym of "PNG"
  • Have an expanded acronym of "Portable Network Graphics"
  • From byte 0, all PNG files have “\x89PNG\r\n\x1A\n” in the file content
  • Match a file glob pattern of “*.png” (case insensitive)

There are hundreds of entries like this in the XML with formal categorization :)

It sounds like you’re trying to approach a solved problem, though. Why are you building a file list, and what are you going to use it for? What are you ultimately trying to do?

jackpot OP ,
@jackpot@lemmy.ml avatar

im trying to find the ‘best’ format for each category

Tolookah ,

I don’t see a need, extensions are there for helping software more than helping people.

Anonymouse ,

It’s actually the opposite. To my knowlegde, Windows is the only OS that I’ve used that uses the file extension to determine the contents, but then they hide it from the user. So maybe file extensions are only for windows?

Tolookah ,

How does osx know how to open a PDF not named .PDF?

hedgehog ,

The standard system in macOS is based on a Uniform Type Indicator, or UTI, like public.plain-text for a plain text file, and public.jpeg for a JPEG image.

To determine the file type, macOS uses MIME types when downloading from the Internet, can still use old Classic Mac OS four-character type codes, and ultimately relies on UTIs.

To get the UTI of a given file, use the mdls (meta data list, part of Spotlight) command in the Terminal.

Check out en.m.wikipedia.org/wiki/Uniform_Type_Identifier for more info.

PDFs have a MIME type of application/pdf per the spec, but you might still encounter some with MIME types like application/x-pdf. MacOS reads the MIME type of a file, then assigns the com.adobe.pdf UTI (if it wasn’t already assigned by another Mac application).

Tolookah ,

Huh, TIL. Thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines