!QQpfJfZvqxbCfeDgCj:matrix.org

This Week in Matrix (TWIM)

1051 Members
A new edition of TWIM every Friday! Please submit details of your Matrix projects here on Fridays. | Find all previous issues at https://matrix.org/twim | Offtopic in #twim-offtopic-continuation:bpulse.org plz417 Servers

Load older messages


SenderMessageTime
30 May 2023
@daedric:aguiarvieira.ptdaedricSee those NaN ?16:08:32
@daedric:aguiarvieira.ptdaedricThe uploaded image info is similar to this:16:08:41
@daedric:aguiarvieira.ptdaedric
{
  "type": "m.room.message",
  "sender": "@dabot:aguiarvieira.pt",
  "content": {
    "body": "k6geqzxu013b1.png",
    "msgtype": "m.image",
    "filename": "k6geqzxu013b1.png",
    "url": "mxc://aguiarvieira.pt/KZhnFisUFlnLUIcVMKeSHeGi"
  },
  "origin_server_ts": 1685461324850,
  "unsigned": {
    "age": 65
  },
  "event_id": "$Qbl9njTJFxGRs14168O4EFEtUeqpRIA0KJnkkKsxKws",
  "room_id": "!VlADlaAKzYXdFhLQhZ:aguiarvieira.pt"
}
16:09:10
@daedric:aguiarvieira.ptdaedricBut, if i upload a image via Element, i get something like this:16:09:21
@daedric:aguiarvieira.ptdaedric
{
  "type": "m.room.message",
  "sender": "@daedric:aguiarvieira.pt",
  "content": {
    "body": "png-transparent-penguin-tux-design-logo-linux-penguin-animals-logo-vertebrate.png",
    "info": {
      "size": 18070,
      "mimetype": "image/png",
      "w": 920,
      "h": 550,
      "xyz.amorgan.blurhash": "LKRfd[ad.TtSS6bHs,jsyEkCMwad"
    },
    "msgtype": "m.image",
    "url": "mxc://aguiarvieira.pt/gAasggirXwIdcCYjVyyUmsyp"
  },
  "origin_server_ts": 1685462095591,
  "unsigned": {
    "age": 102,
    "transaction_id": "m1685462095526.38"
  },
  "event_id": "$QHBYeJYqXbwmJ0Q7y7anXP3IaaA0s9AJtGOTZgs3i8Y",
  "room_id": "!BhYbDqbkGKjvDHvnTq:aguiarvieira.pt"
}
16:09:42
@midou:projectsegfau.ltMidouthe "info" is missing from the json apparently16:10:17
@tulir:maunium.nettulirinfo isn't required, but understandable bug in the archive16:11:07
@travis:t2l.ioTravisR technically info is optional, so would be a regular bug in the archiver 16:11:10
@daedric:aguiarvieira.ptdaedricResult:16:13:07
@daedric:aguiarvieira.ptdaedricimage.png
Download image.png
16:13:40
@daedric:aguiarvieira.ptdaedricBut pressing on them, opens the full image.16:13:47
@daedric:aguiarvieira.ptdaedricIt's just the thumbnail generation that's buggy16:13:53
@travis:t2l.ioTravisR yea, the archiver should switch to using /download or otherwise calculating its desired width/height 16:14:31
@travis:t2l.ioTravisR (it should be calculating that width/height already though... wonder why it uses info at all) 16:14:47
@daedric:aguiarvieira.ptdaedricNot complaining though. Quite amazing 🙂16:16:12
@daedric:aguiarvieira.ptdaedricPerhaps the info could be produced when uploading images via curl / api ?16:16:29
@madlittlemods:matrix.orgmadlittlemods (Eric Eastwood)
In reply to @daedric:aguiarvieira.pt
sent an image.
Keep in mind that since the Matrix Public Archive uses Hydrogen under the hood, these are most likely just Hydrogen bugs and should be reported there
16:45:42
@daedric:aguiarvieira.ptdaedricUhm... You're absolutly correct!16:50:30
@daedric:aguiarvieira.ptdaedricimage.png
Download image.png
16:50:56
31 May 2023
@daedric:aguiarvieira.ptdaedric
In reply to @travis:t2l.io
yea, the archiver should switch to using /download or otherwise calculating its desired width/height
I manage to fix it by calculating and including width (and hight and blurhash) on the script. Both the archiver and hydrogen no longer suffer from the "bug".
07:45:33
@andrewm:element.ioAndrew Morgan (anoa) changed their display name from Andrew Morgan (anoa) [away; back 31st] to Andrew Morgan (anoa).10:33:01
@stefan.ceriu:matrix.orgȘtefan [back Tuesday] changed their display name from Ștefan to Ștefan [back Tuesday].16:33:38
@vagabondazulien:exp.farm@vagabondazulien:exp.farm left the room.21:32:57
@mtrnord:midnightthoughts.spaceMTRNordI wish there was a project search room with reach other than this ^^ But did anyone by any chance write a Hubot adapter for matrix yet? https://hubot.github.com21:58:21
@travis:t2l.ioTravisRhttps://github.com/davidar/hubot-matrix is the older one, but traditionally people just go with writing maubots for familiarity. 22:04:58
@travis:t2l.ioTravisR (found via #matrix-dev:matrix.org of all places) 22:05:08
@mtrnord:midnightthoughts.spaceMTRNord
In reply to @travis:t2l.io
https://github.com/davidar/hubot-matrix is the older one, but traditionally people just go with writing maubots for familiarity.

thanks :) I wasnt able to find that one :D

Yeah I am wondering currently. I hit a case in my infra where basically all tools suck :) (Its always DNS! This time cert resolvers I use not working with multiple different authorative DNS servers at different providers for the same domain) So I might as well just write my own thing after all. But hubot seemed also interesting to try

22:06:35
@mtrnord:midnightthoughts.spaceMTRNordbut it only works with matrix integration :D22:06:45
@mtrnord:midnightthoughts.spaceMTRNord * but it only works with matrix integration for me :D22:06:52
1 Jun 2023
@mauro.romito:element.ioMauro Romito (back on Monday) changed their display name from Mauro Romito to Mauro Romito (back on Monday).15:17:03

There are no newer messages yet.


Back to Room ListRoom Version: 9