Component Export with jpeg issue

For general Flowcode discussion that does not belong in the other sections.
Post Reply
User avatar
p.erasmus
Posts: 434
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Component Export with jpeg issue

Post 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 2306 times


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

when exported


Pcom2.jpg
Pcom2.jpg (4.8 KiB) Viewed 2306 times
[attachment=0]
Regards Peter - QME Electronics

Steve-Matrix
Matrix Staff
Posts: 1309
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 175 times
Been thanked: 299 times

Re: Component Export with jpeg issue

Post 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.

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Component Export with jpeg issue

Post 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
Regards Peter - QME Electronics

Steve-Matrix
Matrix Staff
Posts: 1309
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 175 times
Been thanked: 299 times

Re: Component Export with jpeg issue

Post 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.

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Component Export with jpeg issue

Post by p.erasmus »

Hi Steve.

No I understand I will check it out tonight ,Thank you so much for the help :D
Regards Peter - QME Electronics

Post Reply