thomasnordquist / MQTT-Explorer

An all-round MQTT client that provides a structured topic overview
https://mqtt-explorer.com
Other
2.96k stars 286 forks source link

Support preview of jpeg and png topics #86

Open thomasnordquist opened 5 years ago

thomasnordquist commented 5 years ago

Could be nice.

Topics can be identified by magic numbers: http://www.ntfs.com/jpeg-signature-format.htm https://en.wikipedia.org/wiki/List_of_file_signatures

JPEG

Magic number: FF D8 FF Trailer: FF D9

PNG

Magic number: 89 50 4E 47 0D 0A 1A 0A

GIF

Magic number: 47 49 46 38 37 61 Magic number: 47 49 46 38 39 61

thomasnordquist commented 5 years ago

While this would be very cool, there are 3 issues with this.

Using Buffers seems not to be a viable option

Using Base64 solves most issues but

thomasnordquist commented 5 years ago

The first step is complete, messages are stored as Base64 and can be Data-URI encoded with methods from Base64Message.

However, buffers are currently truncated to a size of 10k in the MQTT data source.

Andoramb commented 3 years ago

Still rooting for this. 🙂

Twanislas commented 7 months ago

Hi team,

Bringing this back to the top 🤘

My use case would be to be able to peek into Frigate snapshot topics like frigate/cam01/person/snapshot which contains the raw JPEG data of the snapshot in the message.

I hope it gets implemented one day :)

ilgrank commented 7 months ago

The author (@thomasnordquist ) is absent from this project since very long, just telling you @Twanislas in case you had hope for a reply

Twanislas commented 7 months ago

Oh...

Thanks for flagging ! Well at least this FR is there, maybe one day xD

Andoramb commented 7 months ago

it's already done in a parallel universe 😁