Skip to content

ultr4nerd/openpyxl-image-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Openpyxl Image Loader

Openpyxl wrapper that gets images from cells

Requirements

Usage

from openpyxl import load_workbook
from openpyxl_image_loader import SheetImageLoader

# Load your workbook and sheet as you want, for example
wb = load_workbook('path_to_file.xlsx')
sheet = wb['required_sheet']

# Put your sheet in the loader
image_loader = SheetImageLoader(sheet)

# And get image from specified cell
image = image_loader.get('A3')

# Image now is a Pillow image, so you can do the following
image.show()

# Ask if there's an image in a cell
if image_loader.image_in('A4'):
    print("Got it!")

About

Openpyxl wrapper that gets images from cells

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages