{"id":21657,"library":"openpyxl-image-loader","title":"openpyxl-image-loader","description":"Openpyxl wrapper that simplifies extracting images from Excel cells. Version 1.0.5 with infrequent releases.","status":"active","version":"1.0.5","language":"python","source_language":"en","source_url":"https://github.com/mauricio-chavez/openpyxl-image-loader","tags":["openpyxl","excel","image extraction","xlsx"],"install":[{"cmd":"pip install openpyxl-image-loader","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core dependency for Excel file handling.","package":"openpyxl","optional":false}],"imports":[{"note":"Wrong class name; correct is OpenpyxlImageLoader.","wrong":"from openpyxl_image_loader import ImageLoader","symbol":"OpenpyxlImageLoader","correct":"from openpyxl_image_loader import OpenpyxlImageLoader"}],"quickstart":{"code":"from openpyxl import load_workbook\nfrom openpyxl_image_loader import OpenpyxlImageLoader\n\nwb = load_workbook('example.xlsx')\nws = wb.active\nimage_loader = OpenpyxlImageLoader(ws)\nimage = image_loader.get('A1')  # returns PIL Image or None\nif image:\n    image.save('extracted_image.png')","lang":"python","description":"Load a workbook, select a sheet, and extract an image from a specific cell."},"warnings":[{"fix":"Pass cell address as a string like 'B2'.","message":"The library only supports cell references as strings (e.g., 'A1'), not tuples or Row/Column objects.","severity":"gotcha","affected_versions":"all"},{"fix":"Always check if image is not None before using it.","message":"The get() method returns None if no image is found; do not assume an image always exists.","severity":"deprecated","affected_versions":"all"},{"fix":"Unmerge cells or manually iterate over cell range.","message":"The library does not handle merged cells with images; images anchored to merged ranges may not be found.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run: pip install openpyxl-image-loader","cause":"Library not installed or installed under different name.","error":"ImportError: No module named 'openpyxl_image_loader'"},{"fix":"Import and use: from openpyxl_image_loader import OpenpyxlImageLoader then create instance: loader = OpenpyxlImageLoader(worksheet)","cause":"Incorrectly instantiating the class as a type rather than an instance.","error":"AttributeError: type object 'OpenpyxlImageLoader' has no attribute 'get'"},{"fix":"Call: image_loader.get('A1') with a valid cell string.","cause":"Calling get without cell argument.","error":"TypeError: get() missing 1 required positional argument: 'cell'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}