New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] The images array is empty. getImages() is not valid! #2732
Comments
Because your image file name ends with an English period (dot), when you save the file in Excel, it will automatically add another period (dot). So, the image file name saved by Excel becomes two dots. However, when ExcelJS is matching image file names with a regular expression, it looks for '.png', not '..png'. Do you understand? Please remove the dot before the image file name extension.
If you want to know why this happens, you can look at the code within ExcelJS this file : lib/xlsx/xlsx.js
this line of code
During the file save process, your image file name extension has changed from '.png' to '..png'. The regular expression code for image matching is in this file.
|
|
match = entryName.match(/xl/media/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/); |
馃悰 Bug Report
Why can't the code get the image information
Lib version: 4.x.x
I need to get the new information about the image and the location
The images array is empty.
The text was updated successfully, but these errors were encountered: