Hi Everyone,
I’m trying to achieve the following:
- I have an Excel file with data in one sheet and a chart (image png format) in another sheet
- I want my agent to copy the chart as-is (same quality) from Excel
- Then paste/embed it into an Outlook draft
When I run this in Glean (chat window), the chart image looks clear. However, when the same output is inserted into Outlook, the image quality drops significantly.
Observation:
- Excel output itself is fine
- The issue seems to be in how Glean fetches or renders the image before inserting into Outlook
Question:
Has anyone faced a similar issue?
- How can I preserve original chart quality while moving from Excel → agent → Outlook?
- Are there better approaches (e.g., format, encoding, or method of embedding) to avoid compression or downscaling?
I’ve included my prompt below for reference. Any help would be appreciated!
Your Python code should focus only on locating, extracting, and preserving the original image from the specified sheet.
You are using Python in an IPython environment to work with a performance workbook file.
Task:
- Load the workbook from [[Performance Data]].
- Locate the worksheet named exactly "ShareViz1".
- Identify the image object(s) on that sheet (e.g., embedded chart, picture, or shape).
- Extract the image as‑is without any modification (no resizing, cropping, reformatting, or recompression).
- Store this extracted image so it can be reused exactly in a downstream step when that step references the output of this step.
Constraints:
- Do not alter the image content or appearance in any way.
- Do not generate any additional analysis, commentary, or visualizations.
- Your Python code should focus only on locating, extracting, and preserving the original image from the specified sheet.