[Bug]: images seems to think that w=50 means 50 pixels, not 50%
MeshChatX version
4.9.2 stable
Release channel
Stable
Platform
Desktop (Electron)
Operating system
macOS
OS details (if Other)
tahoe26.6
How did you install MeshChatX?
pip / uv / PyPI
What happened?
Yes i realize i push this up 25m after you released , but hey, I'm a nerd haha
so... not sure if this is a bug, but i suspect it is, because it doesn't work the same on nomadnet as it does on MCX, and i think nomadnet is the canon version of what rendering should be like
The following markup:
outputs an image that's 50 pixel wide. On nomadnet it outputs 50%.
Now this is where my knowledge stops: I cannot find the manual for nomadnet on images. I can't even find guidelines. So - maybe you got this from specs I don't have access to, and it's rendering properly, and it's nomadnet that has a bug. But because Marc makes nomadnet, i have to assume nomadnet is canon, and that MCX is rendering incorrectly.
PS: I think actually both are incorrect, because i have 480 wide images. On my screen, in preview, at 100% they appear a certain physical size. On Nomadnet i have to set it to 50 to see them at the same size, i think what's happening is nomadnet is thinking 'it should be 50% of THE PAGE'. Your software thinks it's '50% of the DIMENSIONS OF THE IMAGE".
Thank you
What did you expect?
image to be at 50% width
Steps to reproduce
you can visit my page (hosted on mcx) at a3ab2d22647bf8a67937d229d3cbc506:/page/gallery.mu
Logs or error output
Checklist
- [x] I searched existing issues to avoid duplicates
- [x] I included my MeshChatX version, channel, operating system, and install method
- [x] I can reproduce the issue with the steps above
I should have been a bit more explicit about these when I added it to micron.
- Percent values are relatively logical, 50% means 50% of the available width, accounting for potential section indents, et cetera.
nmeans "native"; render the image at it's native pixel width, but never wider than the available width, so clamp to 100%.- Bare integer values means text columns! This is different than stuff like HTML and such, but targeted at the specific use-case of micron. If an image has
w=20, it should be 20 character slots wide, so it will match up with other text/symbol/unicode graphics across clients.
Hope that makes it more clear!
Thank you so much Mark! Much appreciated. @Sudo-Ivan looking forward to the patch :)