Skip to content

Commit fad639c

Browse files
committed
Fix rectangle width
1 parent ec0de7c commit fad639c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renderers/ImageRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function drawBarcode(Image $image, Encoding $encoding, int $currentX):
5858
$this->options->margin_top * $this->options->image_scale,
5959
fn (RectangleFactory $rectangle) => $rectangle
6060
->size(
61-
$this->options->width * $chunk->count() * $this->options->image_scale,
61+
($this->options->width * $chunk->count() * $this->options->image_scale) - 1,
6262
$encoding->height * $this->options->image_scale,
6363
)
6464
->background($this->options->color),

0 commit comments

Comments
 (0)