# UPC-A barcode display format

**URL:** <https://forum.inductiveautomation.com/t/upc-a-barcode-display-format/85434>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [February 8, 2024, 2:00pm UTC](https://forum.inductiveautomation.com/t/upc-a-barcode-display-format/85434 "2024-02-08T14:00:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dis](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dis](https://forum.inductiveautomation.com/u/dis)\
**Post date:** [February 8, 2024, 2:00pm UTC](https://forum.inductiveautomation.com/t/upc-a-barcode-display-format/85434/1 "2024-02-08T14:00:32Z")

</div>

The UPC-A barcode does not display in the "correct" format.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/a/6af05a6a8c43a39aa6735e0ef658e531cd45c692.png)

Can the UPC barcode be made to look like a standard UPC-A barcode?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fb0bc2098e7b149f45ce27e12792f5e6e2fa319d.png)

They want this style  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/23198ac035ec7c5bdefcc62680a504f3ebcc67ff.png)

Is there a way to do that?

---

<div class="post-metadata">

**Author:** ![Chris\_Nathan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_nathan/32/45712_2.png) [@Chris\_Nathan](https://forum.inductiveautomation.com/u/Chris_Nathan)\
**Post date:** [February 8, 2024, 3:17pm UTC](https://forum.inductiveautomation.com/t/upc-a-barcode-display-format/85434/2 "2024-02-08T15:17:22Z")

</div>

To clarify, the first image is what you are getting? And the next two are examples of what you would like according to the UPC-A spec?

I see this listed under 'Perspective'. Is this barcode being shown on a perspective screen? Or is this coming from the Reporting module?

What version of Ignition are you using?

---

<div class="post-metadata">

**Author:** ![dis](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dis](https://forum.inductiveautomation.com/u/dis)\
**Post date:** [February 8, 2024, 3:57pm UTC](https://forum.inductiveautomation.com/t/upc-a-barcode-display-format/85434/3 "2024-02-08T15:57:31Z")

</div>

Yes.  
The first image is the Perspective 8.1.x screen  
The second is the UPC-A specification pictures

---

<div class="post-metadata">

**Author:** ![Chris\_Nathan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_nathan/32/45712_2.png) [@Chris\_Nathan](https://forum.inductiveautomation.com/u/Chris_Nathan)\
**Post date:** [February 9, 2024, 7:08pm UTC](https://forum.inductiveautomation.com/t/upc-a-barcode-display-format/85434/4 "2024-02-09T19:08:14Z")

</div>

I took a look into this for you. First off, I should note that the barcode rendered is indeed valid, but I understand that it does not appear to visually match the UPC-A spec perfectly as requested.

To produce the image, we are leveraging a barcode rendering library. That library exposes the ability to include the barcode text (or not). Our implementation currently hardcodes this property to _not include the text_ and we manually add the text to the image external to the library (this appears below the barcode as you see). When that variable is set _true_ it is just as if a rectangular textbox w/ white background is placed on top of the bottom of the barcode giving it the visual that you are seeking.

I have entered a feature request (IGN-9244) to expose this library variable which would give you more control over the barcode image rendering and allow you to better match the UPC-A spec.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/039757b678c55afd2bab8260c63904b3013b0ea4.png)
