PHPOffice / PHPPresentation

A pure PHP library for reading and writing presentations documents
https://phpoffice.github.io/PHPPresentation
Other
1.31k stars 523 forks source link

problems with imageHashDictionary #534

Open badwolf770 opened 5 years ago

badwolf770 commented 5 years ago

Hi guys! I found the bug with generates slide relationship XML(files into /ppt/slides/_rels / path. Library has the class "PptSlides". Into writeSlideRelationships() method on 94 line generates relationship XML file. This code uses getIndexedFilename() method to get image file name for target image into /media/ path, but this target image may not exists, because generate only unique images from hashTable(hash table generates into PowerPoint2007 class on 98 line). I think method getIndexedFilename() needs to replace on method getHashFilename()(this method not exists) and into it generates fileName by hashIndex.

Sorry for my English :( I hope you will understand what I mean.

Progi1984 commented 3 months ago

@badwolf770 Hi, Could you send me a code or/and sample file with error, please, for reproducing the bug ?