https://bugs.kde.org/show_bug.cgi?id=460150
Bug ID: 460150
Summary: Handle images where the info has 0 height and 0 width
gracefully
Classification: Applications
Product: NeoChat
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
***
Just spotted this in KDE Chat. Nate somehow managed to send an image where the
info in the source has w:0 and h:0 rather than the actual image height. This
caused the bubble to be tiny and the image to just overflow
The message source:
{
"content": {
"body": "QT4God.jpg",
"filename": "QT4God.jpg",
"info": {
"h": 0,
"mimetype": "image/jpeg",
"size": 1539675,
"w": 0
},
"msgtype": "m.image",
"url": "mxc://kde.org/39d89017d179e637ba5b5091532995645921c116"
},
"event_id": "$Skd3ZlwRsD-YulrZkSgCty_kvm59hUP1dYF7zKlFrvM",
"origin_server_ts": 1665269418819,
"sender": "@ngraham:kde.org",
"type": "m.room.message",
"unsigned": {
"age": 37428403
}
}
STEPS TO REPRODUCE
1. No idea a message is downloaded where h:0 and w:0 in the info of the message
source
OBSERVED RESULT
The bubble is tiny and the image overflows
EXPECTED RESULT
Neochat handles this gracefully
SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.13-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Manufacturer: Micro-Star International Co., Ltd
Product Name: MS-7C02
System Version: 1.0
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.