Created
October 1, 2022 16:32
-
-
Save samirsaci/3e3e8261cb19c5fbbb05e8b704b865d7 to your computer and use it in GitHub Desktop.
Graphic Information
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import libaries | |
from PIL import Image | |
import pandas as pd | |
from PIL import Image, ImageOps, ImageDraw | |
from PIL import ImageFont | |
from barcode import EAN13 | |
from barcode.writer import ImageWriter | |
# Import the file | |
df = pd.read_excel('label information.xlsx') | |
# Start the loop | |
for index, row in df.iterrows(): | |
# Create White Canvas with border | |
bg = Image.new('RGBA', (500, 200), color = (255, 255, 255)) | |
bg = ImageOps.expand(bg,border=1,fill='black') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment