Image resizing not working for images where the width was written by desktop Bear to be a floating point value

Operation system: 15.4.1 (24E263)

Web Browser: Chrome 137.0.7141.3


Bug report

What were you doing:

Accessing a note.

What feature did you use:

Resized images.

What happened:

In a note, I have a bunch of images, all resized. Some images are correctly sized on the web. Other images are full-sized and have

<!-- {"width":311.99999999999994} -->

after them, which I imagine is supposed to be their size.

Note the underlying .md:

![](image%202.JPG)<!-- {"width":303} --> ![](image%2011.JPG)<!-- {"width":311.99999999999994} -->

The pictures with integer widths display correctly, but it seems like the images with floating-point widths don’t. These images were resized in the desktop Bear client; perhaps it shouldn’t write floating point widths?


Feedback:

So, this is probably two fixes:

  1. Desktop Bear should round image resizes to integers (rather than “x.999999” values)
  2. Web Bear should be OK with floating-point image resizes

Good analysis. 1 is fixed in the last beta already. 2 should probably be implemented as well. I will add it to the list.