airmessage / airmessage-server

AirMessage's native message relay server for Mac
Apache License 2.0
183 stars 12 forks source link

TIFF Image Support #12

Open itmmckernan opened 2 years ago

itmmckernan commented 2 years ago

Most web browsers besides safari don't support TIFF images. The images could be converted to PNGs on the server or the client using a library like UTIF.js. Steps to Reproduce:

  1. Send or Receive TIFF
  2. Open airmessage web in browser that doesn't support TIFF images (Tested in Edge, Chrome & Firefox should be similar)
  3. Download images to client
  4. Black boxes instead of the images
tagavari commented 2 years ago

AirMessage Server will automatically convert downloaded .heic files, but unlike .tiff, .heic is commonly exchanged by iMessage users as it's one of the native image formats on iOS. Another consideration is that .tiff is not supported on Android either.

Is this an issue you find yourself running into often?

itmmckernan commented 2 years ago

Not super often, but enough to be a minor annoyance. It primarily happens when a mac user pastes a screenshot into iMessage.

larsdennert commented 2 years ago

HEIC files just show blank after downloading. Maybe there needs to be an option to download instead of preview?

tagavari commented 2 years ago

In what cases will macOS produce a .tiff file? macOS 12.4 saves screenshots as .png

nikp79 commented 1 year ago

I tend to copy images/memes to friends from various sources via iMessage and only the .tiff images will fail to load.