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

**URL:** <https://community.bear.app/t/image-resizing-not-working-for-images-where-the-width-was-written-by-desktop-bear-to-be-a-floating-point-value/16354>\
**Category:** Bear Web\
**Created:** [April 29, 2025, 8:26pm UTC](https://community.bear.app/t/image-resizing-not-working-for-images-where-the-width-was-written-by-desktop-bear-to-be-a-floating-point-value/16354 "2025-04-29T20:26:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avidee](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/avidee/32/4474_2.png) [@avidee](https://community.bear.app/u/avidee)\
**Post date:** [April 29, 2025, 8:26pm UTC](https://community.bear.app/t/image-resizing-not-working-for-images-where-the-width-was-written-by-desktop-bear-to-be-a-floating-point-value/16354/1 "2025-04-29T20:26:35Z")

</div>

**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

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

```

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

Note the underlying .md:

```auto
![](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:**

---

<div class="post-metadata">

**Author:** ![avidee](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/avidee/32/4474_2.png) [@avidee](https://community.bear.app/u/avidee)\
**Post date:** [April 29, 2025, 8:44pm UTC](https://community.bear.app/t/image-resizing-not-working-for-images-where-the-width-was-written-by-desktop-bear-to-be-a-floating-point-value/16354/3 "2025-04-29T20:44:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rexikan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/rexikan/32/4117_2.png) [@rexikan](https://community.bear.app/u/rexikan)\
**Post date:** [April 30, 2025, 10:12am UTC](https://community.bear.app/t/image-resizing-not-working-for-images-where-the-width-was-written-by-desktop-bear-to-be-a-floating-point-value/16354/4 "2025-04-30T10:12:32Z")

</div>

> [@avidee](#):
>
> 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.
