Page 1 of 1

Component Export with jpeg issue

Posted: Tue Apr 13, 2021 5:37 am
by p.erasmus
Hi All.

Sorry for this question however I just seems not to do it correctly.
It is the first time I make a component which has a jpeg image and in my PC is all looking ok,
when I export the component and some one else open the component the image is missing
Ysetrday I asked Martin to look at the component in his system (with me it all looks ok) but with
Martin the image is not included in the export

What is the correct way to do this ?

my component
Pcom.jpg
Pcom.jpg (6.83 KiB) Viewed 3541 times


with settings I added from the menu add image
P3.jpg
P3.jpg (26.52 KiB) Viewed 3541 times

when exported


Pcom2.jpg
Pcom2.jpg (4.8 KiB) Viewed 3541 times
[attachment=0]

Re: Component Export with jpeg issue

Posted: Tue Apr 13, 2021 9:35 am
by Steve-Matrix
When you export a component or deploy an App Developer project, the 'filename' property of the image needs to exactly match the reference for the image in the right-hand column of the 'resources' tab. Also, the file needs to be available when the component is created or the App is deployed.

Sometimes the 'filename' property might be a relative path and the reference in 'resources' might be an absolute path (or vice versa). In this case, the resource will not be added correctly to the component/App when it is created/deployed. Make sure both references are either relative or absolute.

Re: Component Export with jpeg issue

Posted: Tue Apr 13, 2021 10:06 am
by p.erasmus
Hi Steve

Thank you for the advise ,
I was born BC :D (before computers) so this is not so clear to me what to do but will dig into it if I do not mange I will ask again for help
:D :D

Re: Component Export with jpeg issue

Posted: Tue Apr 13, 2021 10:28 am
by Steve-Matrix
Hi Peter,

An absolute path will start with the drive letter (e.g. "C:\my_folder\my_image.png") and a relative path will start with one or two dots (e.g. "..\..\my_folder\my_file.png" or ".\project_resources\my_file.png").

I'd suggest making sure both references are absolute.

If you're still having problems, please post your project and the image and I'll investigate.

Re: Component Export with jpeg issue

Posted: Tue Apr 13, 2021 12:56 pm
by p.erasmus
Hi Steve.

No I understand I will check it out tonight ,Thank you so much for the help :D