You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a PPT consisting of a slide with an image and another slide with a hyperlink and an image. In this case, the image on the second slide is broken.
I can reproduce the issue with the latest 2.5.0 release.
This issue is likely related to #465 (which covers hyperlink and image on the same slide). I verified that the test case for #465 works with my 2.5.0 release, i.e. this issue is a different problem.
Reproduce
This code reproduces the issue:
varPptxGenJS=require("pptxgenjs");varIMAGE='image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7';varpptx=newPptxGenJS();varslide1=pptx.addNewSlide();slide1.addImage({data: IMAGE});varslide2=pptx.addNewSlide();slide2.addText([{text: 'Link',options: {hyperlink: {url: 'https://www.github.com'}}}]);// This image will be brokenslide2.addImage({data: IMAGE,y:1});pptx.save('reproduce-issue-465');
The code generates the following output:
The text was updated successfully, but these errors were encountered:
ronnyroeller
changed the title
addText with hyperlink and addImage on different slide broken image
addText with hyperlink and addImage on different slide brakes image
Mar 21, 2019
I create a PPT consisting of a slide with an image and another slide with a hyperlink and an image. In this case, the image on the second slide is broken.
I can reproduce the issue with the latest 2.5.0 release.
This issue is likely related to #465 (which covers hyperlink and image on the same slide). I verified that the test case for #465 works with my 2.5.0 release, i.e. this issue is a different problem.
Reproduce
This code reproduces the issue:
The code generates the following output:
The text was updated successfully, but these errors were encountered: