I'm trying to replace multiple pictures in the same pptx with different images, but all the pictures end up using the same image file. I've simplified my template as much as possible, and I run the following code:
include_once('TinyButStrong/tbs_class.php');
include_once('TinyButStrong/tbs_plugin_opentbs.php');
$TBS = new clsTinyButStrong;
$TBS->Plugin(TBS_INSTALL, OPENTBS_PLUGIN);
$template = "Blank1.pptx";
$TBS->LoadTemplate($template, OPENTBS_ALREADY_UTF8);
$TBS->PlugIn(OPENTBS_CHANGE_PICTURE, '[logo]', 'dir1/image.png');
$TBS->PlugIn(OPENTBS_CHANGE_PICTURE, '[manager1]', 'dir2/image.png');
$TBS->Show(OPENTBS_FILE, 'output.pptx');
Both [logo] and [manager1] appear to use the first image; the second image doesn't appear anywhere in the output.
Blank1.pptx: http://s000.tinyupload.com/index.php?file_id=91896797071510548344
output.pptx: http://s000.tinyupload.com/index.php?file_id=09650184799482515028
I don't know what else to try. :(
I haven't heard back from @Skrol29 yet, but I went ahead and removed the basename() call from line 1575 in tbs_plugin_opentbs.php and that fixed the problem I was experiencing. So far it's working without any negative side effects, so I'm posting this answer for others' reference while awaiting any further feedback from @Skrol29.