# Original Bounding Box Coordinates to Resized Image Coordinates

**URL:** <https://community.labelstud.io/t/original-bounding-box-coordinates-to-resized-image-coordinates/410>\
**Category:** Label Studio Support\
**Created:** [November 15, 2024, 8:23am UTC](https://community.labelstud.io/t/original-bounding-box-coordinates-to-resized-image-coordinates/410 "2024-11-15T08:23:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kleonor23](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kleonor23](https://community.labelstud.io/u/kleonor23)\
**Post date:** [November 15, 2024, 8:23am UTC](https://community.labelstud.io/t/original-bounding-box-coordinates-to-resized-image-coordinates/410/1 "2024-11-15T08:23:31Z")

</div>

I am currently trying to import new predictions using the python SDK.

Currently I have the bounding box coordinates in COCO format for a rectangle label based on the original image dimensions.

When trying to import predictions with the original bbox coordinates, they are now too big as the image has been resized. I see that annotations for Images are saved as percentages of the original size of the image from 0-100.

I am able to convert the x\_min and y\_min values but am having difficulty calculating the new values for width and height.
