<div dir="ltr"><div><div><div>Hi all,<br><br></div>I'm trying to create a library of themed print composer templates for my agency, and each needs to include an .SVG logo image. I would like for the image file to A) either be included within the template file itself, or B) referenced from a path relative to the template file.<br><br></div>It seems that when saving as a template (QGIS 2.8.3 on Win7), the .QPT file references the image file as a relative path, but apparently relative to the project rather than the template. Since I'm trying to distribute these templates to other users, and I can't predict their filesystem layout, I'm trying to figure out a way to reference the image relative to the template itself. <br><br><br>I have tried editing the .QPT source in several ways to make this work:<br><br>1.  <ComposerPicture file="logo.svg"><br><br></div>Simply the image filename, with the image in the same directory as the template. Fails to load with a red X.<br><br>2.  <ComposerPicture file="./logo.svg"><br><div><br></div><div>Relative path style "current directory" with the image in the same directory as template. Fails to load because QGIS resolves the path to the PROJECT dir rather than the template dir.<br><br></div><div>3. Absolute path to the .SVG image. This works, but I don't know nor want to dictate where a user places their templates.<br><br></div><div>4. Relative path to project. This works, and forcing users to store templates in some fixed location relative to all their projects is a solution, though not one I want to force on them.<br><br></div><div><br></div><div>Is there a way to refer to an image file relative to the template itself, OR a way to include the contents of an .SVG image inside the .QPT template?<br></div><div><br></div><div><br></div><div>Thanks!<br><br></div><div>- DR<br clear="all"></div><div><div><div><div><br>-- <br><div class="gmail_signature">David A. Riggs <<a href="mailto:david.a.riggs@gmail.com" target="_blank">david.a.riggs@gmail.com</a>><br><br></div>
</div></div></div></div></div>