简体   繁体   English

如何在openpyxl中将图像从一个Excel复制到另一个?

[英]How to copy image from one excel to another in openpyxl?

I have one excel which contains a logo(logo.png), and I want to read and edit the excel with openpyxl, and save it as another excel, but I found that when I use load_workbook , the image data seems to be lost. 我有一个包含logo(logo.png)的excel,我想用openpyxl读取和编辑excel,并将其另存为另一个excel,但是我发现当我使用load_workbook ,图像数据似乎丢失了。

Does openpyxl have any solution to do that? openpyxl有解决方案吗?

它在文档中非常清楚地指出,图像未保留在现有文件中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 openpyxl 库将列从一张 excel 表复制到另一张 python? - How can I copy columns from one excel sheet to another with python using openpyxl Library? Openpyxl - 如何将数据范围从 Excel 工作表复制到另一个 - Openpyxl - How to copy data range from an excel worksheet to another 如何使用 openpyxl 将工作表从一个工作簿复制到另一个工作簿? - How to copy worksheet from one workbook to another one using openpyxl? 使用 Python 和 openpyxl 将 1 个特定行从一个 Excel 电子表格复制到另一个 - Using Python & openpyxl to copy 1 specific row from one excel spreadsheet to another 使用openpyxl将公式从一个单元格复制到另一个单元格 - Copy formula from one cell to another using openpyxl 使用openpyxl将单元格值列从一个工作簿复制到另一个工作簿 - Copy column of cell values from one workbook to another with openpyxl openpyxl - 将值和 styles 从一个范围复制/粘贴到另一个范围 - openpyxl - copy/paste values and styles from one range to another 尝试使用 OPENPYXL 将一系列单元格从一个工作簿复制到另一个工作簿 - Trying to copy a range of cells from one workbook to another using OPENPYXL 如何在跳过空单元格的同时将数据从一张纸复制到另一张纸 - Python 和 Openpyxl - How to copy data from one sheet to another while skipping empty cells - Python and Openpyxl 如何使用python中的openpyxl将范围从一张纸复制到另一张纸作为值 - How to copy a range from one sheet to another as values using openpyxl in python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM