observe_media_identify_file/2

Try to identify a file, returning a map with file properties.

Type:

first

Return:

map with binary keys, especially <<"mime"\>\>, <<"width"\>\>, <<"height"\>\>, <<"orientation"\>\>

#media_identify_file{} properties:

  • filename: file:filename_all()

  • original_filename: binary

  • extension: binary

Edit on GitHub