Hi Srinidhi Anand,
Welcome to Microsoft Q&A Forum!
Have a great and and I hope you're doing well!
I truly empathize and understand the challenges you're facing having images overridden in the web viewer (like OneDrive or SharePoint) while everything displays perfectly in Excel Desktop is incredibly frustrating and can really disrupt your workflow. I know that when working with image data from multiple sources, you expect consistency across platforms, and this issue can compromise the integrity of your files, especially when sharing with your team or clients. I've assisted with similar cases before, and I'm confident we can work through this together!
To help me support you more effectively, could you share a bit more information? For example: a sample code snippet you're using (like the addImage part in ExcelJS), screenshots comparing Desktop vs. web app, or even a minimal .xlsx file for me to test. These details will give me better insights and allow me to suggest more precise solutions.
In the meantime, while we work toward a permanent fix, here are a few temporary workarounds you can try right away to minimize the impact on your work:
- Clear cache and try in incognito browser: I get that this error might just be temporary due to caching, so let's try this simple step first. It often resolves things quickly! Then open the file in incognito mode (press Ctrl+Shift+N). If the issue persists, it could be a server or web viewer problem, and I'll help dig deeper.
- Prioritize opening in Desktop (if you need to view urgently): To avoid interruptions right away, I recommend encouraging users to download the file and open it in Excel Desktop. This ensures images display correctly 100% without any rendering issues. You can add a note when sharing on OneDrive/SharePoint: "If you need to view urgently, use 'Open in app' to open with Excel on your computer, helping avoid web errors and keep data accurate."
I really want to help you get past this issue as quickly and effectively as possible, because I know it can be stressful in your daily work. Rest assured, I'll follow up closely and be here with you until everything is sorted. If you need more ideas or testing, feel free to share!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.