I love working with the atlas generator and I came up with a new case to use it for. I want to add a picture to my map from URL. I am allowed to add a picture if I type in the full url path. eg. http://my.url.service.no/pics/img_001.jpg But I want to add the picture based on the filename from my table. See example in my print screen.

Using the same expression creating a lable it give me the string for the complete url eg. http://my.url.service/[%"filename"%] evaluates to http://my.url.service/img_001.jpg

Is it possible to do what I try here, anyone with experience or tips?

print screen

2 Answers 2


Try with concat('http://www.example.com/img/',"filename",'.jpg'), replace the .jpg with the appropriate extension if all of your images are the same type.

Or concat('http://www.sylve.ch/docs/',"filename") if the extension .jpg or else is included in your name's file.


I solved it at last using 'http://www.example.com/img/'||"filename"

However romainbh answer also work! Thanks romainbh

  • I´m having trouble doing this. Question: Hows the path written in the table? And then you "call" the picture by labeling in Composer, right?
    – CARTOS
    Commented Nov 19, 2015 at 16:35
  • The path is not fully written in the table, it's just the filename that is stored in the table eg img5146.jpg. The path to the file is static and is written in the expression. The filename is appended to the path by using ||. The path can also be a place on you local disk. I hope that make sense, iam typing from my phone.
    – geogrow
    Commented Nov 19, 2015 at 18:26
  • Nahh I lost it, but a freind showed me another method. That method is with the full path in table and using the "add picture" in composer. But thanks.
    – CARTOS
    Commented Nov 23, 2015 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.