• Stepan Salenikovich's avatar
    Remove file name filters from avatar file chooser · 3d1add6f
    Stepan Salenikovich authored
    There are a few issues with filtering by the file name extension:
    - more than just .jpg and .png are supported; svg images and other
      formats work as well
    - on GNU/Linux, the file extension does not dictate the file type;
      you can rename a .svg to .jpg and it will still work correctly
    - many file types have multiple extension names, eg: .jpeg or .JPG
    There is also no need to filter by the name, because if the file
    type is not supported, it will simply  not work if the user tries
    selecting it as the avatar image and a simple warning will be
    Change-Id: If7c95b8bbcbf4c45ac02c43a7788d5a7915b2670
    Reviewed-by: default avatarNicolas Jäger <nicolas.jager@savoirfairelinux.com>
avatarmanipulation.cpp 18.6 KB