I’m trying to add a .jpg image (foo.jpg, or instance) to my project (so it can be added to a PDF document - I’m using the Einhugur plugin to create the PDF). I’m finding that if I drag the .jpg image file (either alone, or in a folder) to the project navigator (to add it to the project), and then examine the Resources folder in the app, the .jpg file has been changed to a .png file (foo.png).
I didn’t expect this behavior - why does a .jpg file get silently converted to a .png file when it is added to the project via drag/drop?
When I attempt to create a FolderItem reference using SpecialFolder.Resource (using the filename with the .jpg extension), the BinaryStream.Open call (using the FolderItem reference) fails - the embedded project contains foo.png, but the code is expecting foo.jpg.
The other part of this question is… If this is not the proper way to embed a .jpg file in a project, what is the recommended method?