Image name changing

Post Reply
borkman
Posts: 55
Joined: Tue May 09, 2023 7:26 pm

Image name changing

Post by borkman »

I've noticed something weird happening when using Images. With no change to the Image component, the originally generated code:

Code: Select all

image1.SetCurrentImage( "borkman.png" );
goes to this on a subsequent save:

Code: Select all

image1.SetCurrentImage( "image image.png" );
Another image in the same component does something similar changing to

Code: Select all

image2.SetCurrentImage( "image image(2).png" );
Interestingly, the images are display as expected. The only reason I noticed is because I looked at a diff of the changes.

Is this a problem?
User avatar
utdgrant
Posts: 625
Joined: Wed Apr 07, 2021 8:58 am
Location: Scotland
Contact:

Re: Image name changing

Post by utdgrant »

I believe it reads in the original file from disk and stores it inside the project as a binary asset. i.e. just a 'blob' of data. This gets interpreted as an display image during run-time.

VMD performs the same process for me, so I wouldn't worry about it.
______________________
Dome Music Technologies
User avatar
seal58
Posts: 377
Joined: Fri Jul 12, 2019 5:28 pm
Location: Rostock, Germany
Contact:

Re: Image name changing

Post by seal58 »

I could also see see that even reloading the image or replacing it, lets "image(..)" count up.

As utdgrant mentioned VMD seems to not use real image file name internally.
borkman
Posts: 55
Joined: Tue May 09, 2023 7:26 pm

Re: Image name changing

Post by borkman »

Thanks for confirming. It seemed to be a non-issue, but it was weird that it initially saved and built with the file name and later renamed things. One less thing to worry about!
Post Reply

Return to “Module Designer”