# Node-red-node-annotate-image (enhancments)

**URL:** <https://discourse.nodered.org/t/node-red-node-annotate-image-enhancments/37581>\
**Category:** Core Development\
**Created:** [16 December 2020 14:19 UTC](https://discourse.nodered.org/t/node-red-node-annotate-image-enhancments/37581 "2020-12-16T14:19:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)\
**Post date:** [16 December 2020 14:19 UTC](https://discourse.nodered.org/t/node-red-node-annotate-image-enhancments/37581/1 "2020-12-16T14:19:45Z")

</div>

Changes I've made - awaiting your approval to send pull request.  
[https://github.com/meeki007/node-red-nodes/tree/master/utility/annotate-image](https://github.com/meeki007/node-red-nodes/tree/master/utility/annotate-image)

* * *

I love this node but it looks funny with the words inside the box.  
 ![01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a6bc5f6c4201467b818376fa60ab273e9ccf6ff.jpeg)

 ![02](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/535cd48f2ce06bd7d8f949447c71aaabb1e4c4b2.jpeg)

* * *

I thought it would be so much nicer on the top  
 ![03](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/0/60bb796319ef2986fb566ae7fdd8c3261b7e0771.jpeg)

* * *

Then It needs to scale right so i took care of that  
 ![04](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/53367d4a8b4caa75be7f36a44eccb5000851cae4.jpeg)

* * *

This Icing on the cake is I wanted it to tell if there was no room left on the top based on `fontSize` and `lineWidth` it should be able to put it on the bottom automatically..... now it does

 ![05](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/f/2f26006d4df08a1b71b9244a4996d9b32533ebb5.jpeg)

* * *

But what if a user want to over ride the top or bottom. that is now coverd too.

- `labelLocation` ( _string_ ) : The Location to place the label. Default: `top` or `bottom` . If this propery is not set it will default to `automatic`

Let me know what you think. updated html / js / and README.md

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [16 December 2020 16:13 UTC](https://discourse.nodered.org/t/node-red-node-annotate-image-enhancments/37581/2 "2020-12-16T16:13:47Z")

</div>

I have no problem with a Pull Request...

---

<div class="post-metadata">

**Author:** ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)\
**Post date:** [17 December 2020 13:27 UTC](https://discourse.nodered.org/t/node-red-node-annotate-image-enhancments/37581/3 "2020-12-17T13:27:10Z")

</div>

Sent Pull Request -------\> I'm in no rush on this. Its the holidays. you guys must be busy as hell juggling family and node-red.

If it gets forgotten I'll post again here Jan 15th-ish

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [17 December 2020 13:41 UTC](https://discourse.nodered.org/t/node-red-node-annotate-image-enhancments/37581/4 "2020-12-17T13:41:51Z")

</div>

Now you've raised a PR there is no reason to follow up here. If your PR hasn't had any feedback from us by the 15th, then add a comment to the PR.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 February 2021 13:42 UTC](https://discourse.nodered.org/t/node-red-node-annotate-image-enhancments/37581/5 "2021-02-15T13:42:12Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
