how to include image in ggpkg?

Q&A about the latest versions
Post Reply
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
With the package viewer for android things are looking pretty good. In an intro popup explanation text (entered in "userdata" -> "description" i made a manual link to two images, which don't show up through the package viewer. I only see the 'broken image" symbol. On my web server i manually upload them to image/imagename.svg and it looks as intended, but now with the packages i need to make sure it's included in it. how do i do that? Add them to "output -> assets' doesn't seem to help.

tips appreciated.
David
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi David,
Can you go into detail on how you load the images in the skin. You do need to add them as assets, but then from there how are you showing them?
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,

Everything from the skin is fine. It's an image i add through a manual written link tag <img src=...." that i enter in the "user data" field of the project itself.

I do it like this because many projects share the same skin, but only in this one i want to show two small SVG images in the 'splash' screen.
but no matter what the image link is, i can't seem to make it show in the ggpkg on android (i get "broken image" icon) . on my webserver it all shows o.k. when i manually upload the image file to the right folder.

david
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi david,
You need to add the images via the assets as found under the HTML5 output and Advanced tab.
Otherwise the project file does not know to include it in the package.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
Yes i've done that (as mentioned in my first post) but still they don't appear in either windows package viewer or android. normal output is fine.
maybe i make the link wrong, i tried a few ways... what would be the right format ?

david
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

aha problem solved, i changed the link from images/.... (where the file was stored) to assets/..... now it works on all platforms. :)

btw i do enjoy the android app a lot, it's what i bought my tablet for but so far never could get working smoothly enough, it does now! thanks a lot for that.
Post Reply