How does Print Layout know which image to display from the attribute table? Are you saying a feature has an attribute with a specific file path from a folder where there are multiple image files?
On Sun, Jun 9, 2024, 2:01 PM <qgis-user-requ...@lists.osgeo.org> wrote: > Send QGIS-User mailing list submissions to > qgis-user@lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.osgeo.org/mailman/listinfo/qgis-user > or, via email, send a message with subject or body 'help' to > qgis-user-requ...@lists.osgeo.org > > You can reach the person managing the list at > qgis-user-ow...@lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of QGIS-User digest..." > > > Today's Topics: > > 1. Issue with Adding Dynamic Images in QGIS Report (Max Hoyer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 9 Jun 2024 10:57:20 +0200 > From: Max Hoyer <maxhoy...@gmail.com> > To: qgis-user@lists.osgeo.org > Subject: [Qgis-user] Issue with Adding Dynamic Images in QGIS Report > Message-ID: > < > cap04p1ulq0ymbpse1pq_rnse72thrg01yfgcfa3turhyw99...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > > I am writing to seek assistance regarding an issue I am experiencing while > trying to add dynamic images to a report in QGIS. I have followed the > recommended steps, but the images are not displaying correctly. Here are > the details of my issue: > > 1. **QGIS Version**: I am using QGIS 3.28.15. > > 2. **Setup**: > - I have created a text field in the attribute table of my layer to > store the file paths of the images. The field is named "Bild". > - The file paths are entered in the following format: D:\Huddinge.jpg > - I have confirmed that QGIS has access to the image files and can > display them when not using the attribute table. > > 3. **Steps Taken**: > - I opened the Print Layout. > - I added an image object to the layout. > - In the properties of the image object, I selected "Raster image" ? > "Attribute Field". > - I selected the correct layer and the "Bild" field. > - I ensured the "Field type: string" option is enabled. > > 4. **Issue**: > - Despite following these steps, the image does not display in the > report layout. Instead, I see a red "X" indicating that the image could not > be loaded. > > 5. **Additional Checks**: > - I verified that the file paths in the attribute table are correct and > accessible. > - I tried using both absolute and relative paths without success. > - I tested different image formats (.jpg, .png) to rule out format > issues. > - I ensured there are no invisible characters or spaces in the file > paths. > - I restarted QGIS and recreated the image object in the report layout. > > 6. **Other Details**: > - When adding an image directly (not via the attribute table), it > displays correctly, confirming that the file paths and image files are not > the issue. > > Thanks for your help. > Max > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.osgeo.org/pipermail/qgis-user/attachments/20240609/95641e3d/attachment-0001.htm > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > QGIS-User mailing list > QGIS-User@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > > > ------------------------------ > > End of QGIS-User Digest, Vol 220, Issue 11 > ****************************************** >
_______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user