GetPictureCells
and GetPictures
functions don't support images with absolute path targets
#1987
Labels
bug
Something isn't working
Description
The
GetPictureCells
andGetPictures
functions don't appear to support images where the target attribute in the XML structure uses absolute paths.For example the following
xl/drawings/_rels/drawing1.xml.rels
file which contains a Relationship with a Target attribute using an absolute path of"/xl/media/image1.jpg"
does not work.When the Target attribute is using a relative path of
"../media/image1.jpg"
it does work.Steps to reproduce the issue:
Use the attached
TestGetPictureAbsolutePath.xls
file which contains a single floating image and the following Go test which demonstrates a failure to detect any images when usingGetPictureCells
.Describe the results you received:
The above test fails:
Describe the results you expected:
Using either relative or absolute paths for relationship targets should be acceptable.
Output of
go version
:Excelize version or commit ID:
excelize master @ 0447cb2
Environment details (OS, Microsoft Excel™ version, physical, etc.):
The text was updated successfully, but these errors were encountered: