'How do I upload photos to lable when the program is turned on? [duplicate]

I have a lable, I want to make it so that after inclusion in it, a photo with a certain name is uploaded, for example "foto.jpg", while with certain dimensions, say 150*150px. How to implement it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source