<div dir="ltr"><div>Thanks for the response.</div><div><br></div><div>Yes, I did make changes to both those CMake files. I've pushed to my repo as well:</div><div>1. Creating the subdirectory and subdirectory CMakeLists: <a href="https://invent.kde.org/graphics/digikam/-/commit/a176a264cf1776105491c7883aa21ed6a1b492b1">https://invent.kde.org/graphics/digikam/-/commit/a176a264cf1776105491c7883aa21ed6a1b492b1</a></div><div>2. Patching in parent CMakeLists: <a href="https://invent.kde.org/graphics/digikam/-/commit/ddb133af9aaabf58a90dd5c194e145bdd6c7e6ff">https://invent.kde.org/graphics/digikam/-/commit/ddb133af9aaabf58a90dd5c194e145bdd6c7e6ff</a></div><div><br></div><div>Then I run make in core/app followed by sudo make install just to be sure.</div><div><br></div><div>I'm invoking my image as:</div><div>QPixmap(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("digikam/data/overlayImg.png")));</div><div><br></div><div>After doing this, my image does not show up in /usr/share/digikam/data, where all the other images are present.</div><div><br></div><div>Thanks again</div><div>Kartik<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 28, 2020 at 3:21 PM Gilles Caulier <<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
If you store your image in a dedicated folder in core/data/pics/, with<br>
a relevant CMakeLists.txt script inside, did you patch also the parent<br>
core/data/pics/CMakeLists.txt file to include your directory while<br>
configuring and installing ?<br>
<br>
Best<br>
<br>
Gilles Caulier<br>
<br>
Le dim. 28 juin 2020 à 10:16, Kartik Ramesh <<a href="mailto:kartikx2000@gmail.com" target="_blank">kartikx2000@gmail.com</a>> a écrit :<br>
><br>
> Hi Gilles,<br>
><br>
> I've followed your instructions, and wrote a similar script for my own subdirectory. However, the images I've added don't seem to show up in the Data Install directory. For my setup, the images get installed in /usr/share/digikam/data. This folder contains images such as "sample-aix", but my images don't show up here.<br>
><br>
> After writing the CMake scripts, I'm doing a make followed by make install. I think I'm missing some step.<br>
><br>
> Thanks<br>
> Kartik<br>
><br>
> On Sat, Jun 27, 2020 at 1:17 PM Gilles Caulier <<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>> wrote:<br>
>><br>
>> Hi Kartik,<br>
>><br>
>> Data as embedded images are located in core/data/pics/ directory.<br>
>><br>
>> <a href="https://invent.kde.org/graphics/digikam/-/tree/master/core/data/pics" rel="noreferrer" target="_blank">https://invent.kde.org/graphics/digikam/-/tree/master/core/data/pics</a><br>
>><br>
>> You can create a new subdir for your images and install files on your<br>
>> system using cmake rules like this one :<br>
>><br>
>> <a href="https://invent.kde.org/graphics/digikam/-/blob/master/core/data/pics/borderpatterns/CMakeLists.txt" rel="noreferrer" target="_blank">https://invent.kde.org/graphics/digikam/-/blob/master/core/data/pics/borderpatterns/CMakeLists.txt</a><br>
>><br>
>> To load this image on demand in your dialog, this look simple like<br>
>> this using QStandardPaths::locate :<br>
>><br>
>> <a href="https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dimg/filters/decorate/bordersettings.cpp#L546" rel="noreferrer" target="_blank">https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dimg/filters/decorate/bordersettings.cpp#L546</a><br>
>><br>
>> In Setup editor page, i embedded a photo to illustrate the over/under<br>
>> exposure effect settings.<br>
>><br>
>> Photo is here :<br>
>><br>
>> <a href="https://invent.kde.org/graphics/digikam/-/blob/master/core/data/pics/digikam/sample-aix.png" rel="noreferrer" target="_blank">https://invent.kde.org/graphics/digikam/-/blob/master/core/data/pics/digikam/sample-aix.png</a><br>
>><br>
>> Code is here :<br>
>><br>
>> <a href="https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/setup/editor/setupeditoriface.cpp#L203" rel="noreferrer" target="_blank">https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/setup/editor/setupeditoriface.cpp#L203</a><br>
>><br>
>> Best<br>
>><br>
>> Gilles Caulier<br>
>><br>
>> Le sam. 27 juin 2020 à 08:29, Kartik Ramesh <<a href="mailto:kartikx2000@gmail.com" target="_blank">kartikx2000@gmail.com</a>> a écrit :<br>
>> ><br>
>> > Hello all,<br>
>> ><br>
>> > I am working on a help-box for users to help with using the Face Management Workflow. I have created a dialog-box which contains images. Currently, I'm using images on my local machine, so I can use absolute paths. What is the correct location in the code directory, where I should store these images?<br>
>> ><br>
>> > Thanks<br>
>> > Kartik<br>
</blockquote></div>