Fractal on macOS does not recognize images from MIME types
Detailed description of the issue. Provide as much information as you can, potentially with images showing the issue.
Steps to reproduce:
- Open Fractal
- Enter a room
- Upload a
.png
or.jpg
- The photo will be uploaded as a generic file:
m.file
rather thanm.image
Apparently gio info
should say standard::content-type: image/jpeg
for images. but it's saying standard::content-type: public.png
and standard::content-type: public.jpg
gio info "Screenshot 2019-04-28 16.33.08.png"
on:
produced:
display name: Screenshot 2019-04-28 16.33.08.png
edit name: Screenshot 2019-04-28 16.33.08.png
name: Screenshot 2019-04-28 16.33.08.png
type: regular
size: 207376
uri: file:///Users/xxxxxxxx/Dropbox/Screenshots/Screenshot%202019-04-28%2016.33.08.png
attributes:
standard::type: 1
standard::name: Screenshot 2019-04-28 16.33.08.png
standard::display-name: Screenshot 2019-04-28 16.33.08.png
standard::edit-name: Screenshot 2019-04-28 16.33.08.png
standard::copy-name: Screenshot 2019-04-28 16.33.08.png
standard::icon: image-png, image-x-generic, image-png-symbolic, image-x-generic-symbolic
standard::content-type: public.png
standard::fast-content-type: public.png
standard::size: 207376
standard::allocated-size: 208896
standard::symbolic-icon: image-png-symbolic, image-x-generic-symbolic, image-png, image-x-generic
etag::value: 1556487188:0
id::file: l16777221:14512802
id::filesystem: l16777221
access::can-read: TRUE
access::can-write: TRUE
access::can-execute: FALSE
access::can-delete: TRUE
access::can-trash: TRUE
access::can-rename: TRUE
time::modified: 1556487188
time::access: 1556487568
time::changed: 1556487189
time::created: 1556487188
unix::device: 16777221
unix::inode: 14512802
unix::mode: 33188
unix::nlink: 1
unix::uid: 501
unix::gid: 20
unix::rdev: 0
unix::block-size: 4096
unix::blocks: 408
owner::user: xxxxxxxx
owner::user-real: XXXXXXXX
owner::group: staff
xattr-sys::com.apple.FinderInfo:
xattr-sys::com.apple.lastuseddate#PS: \x14\x1c\xc6\x5c
xattr-sys::com.apple.metadata:kMDItemIsScreenCapture: bplist00\x09\x08
xattr-sys::com.apple.metadata:kMDItemScreenCaptureGlobalRect: bplist00\xa4\x01\x02\x03\x04#@J\x80
xattr-sys::com.apple.metadata:kMDItemScreenCaptureType: bplist00Yselection\x08
xattr-sys::com.dropbox.attributes: x\x9c\xabVJ)\xca/H\xca\xaf\x88O\xcb\xccI\xcdL\x89\xcf\xc9ON\xccQ\xb2R\xa8V\xcaML\xce\xc8\xcc\x03\x89%\x96\x94\x14\x81\x85R\x12K\x12\x81\x0c\xa5\xd2\x94\xbc\x08\x0f\x93\x10\x9f\x8c\xacR\xed@S\xefT?\xcb\xf4\xc8\x94t[[\xa5\xda\xdaZ
xattr-sys::com.dropbox.attributes:screenshot: 1
and running gio info
on:
produced:
display name: DjsI-dzU8AEXpp0.jpg
edit name: DjsI-dzU8AEXpp0.jpg
name: DjsI-dzU8AEXpp0.jpg
type: regular
size: 242043
uri: file:///Users/xxxxxxxxxx/Downloads/DjsI-dzU8AEXpp0.jpg
attributes:
standard::type: 1
standard::name: DjsI-dzU8AEXpp0.jpg
standard::display-name: DjsI-dzU8AEXpp0.jpg
standard::edit-name: DjsI-dzU8AEXpp0.jpg
standard::copy-name: DjsI-dzU8AEXpp0.jpg
standard::icon: image-jpeg, image-x-generic, image-jpeg-symbolic, image-x-generic-symbolic
standard::content-type: public.jpeg
standard::fast-content-type: public.jpeg
standard::size: 242043
standard::allocated-size: 245760
standard::symbolic-icon: image-jpeg-symbolic, image-x-generic-symbolic, image-jpeg, image-x-generic
etag::value: 1556275543:0
id::file: l16777221:14153507
id::filesystem: l16777221
access::can-read: TRUE
access::can-write: TRUE
access::can-execute: FALSE
access::can-delete: TRUE
access::can-trash: TRUE
access::can-rename: TRUE
time::modified: 1556275543
time::access: 1556488568
time::changed: 1556275544
time::created: 1556275543
unix::device: 16777221
unix::inode: 14153507
unix::mode: 33188
unix::nlink: 1
unix::uid: 501
unix::gid: 20
unix::rdev: 0
unix::block-size: 4096
unix::blocks: 480
owner::user: xxxxxxxx
owner::user-real: XXXXXXX
owner::group: staff
xattr-sys::com.apple.metadata:_kMDItemUserTags: bplist00\xa0\x08
xattr-sys::com.apple.metadata:kMDItemWhereFroms: bplist00\xa2\x01\x02_\x10/https://pbs.twimg.com/media/DjsI-dzU8AEXpp0.jpg_\x10:https://twitter.com/ManishEarth/status/1025423234576076800\x08\x0b=
xattr-sys::com.apple.quarantine: 0081;5cc2e157;Firefox;A2832229-EE6D-4EB3-A751-462F45FE6F8F