I'm using Syncfusion's PDF generation library for Xamarin Forms, and unlike their WPF/WinRT versions of their PDF generator, it can only handle JPG images. My app allows the user to select an image file to embed in the PDF, and as long as that image is a JPG, it works great. If they happen to pick a PNG, however (just as one example), then the app crashes because the PDF can't handle non-JPG files.
So what I have is an image saved to local storage, which I can easily turn into a byte[] or a MemoryStream if necessary, that I want to turn into a JPG. I've seen C# and Java code that do this, but sadly none of it is even remotely usable in XF because none of the namespaces are available or importable.
Image manipulation is way outside my area of expertise, so I'm not sure if there are better terms to search for to try and find this answer out there somewhere, but I've tried lots of searching and have found basically nothing useful. But I'm sure that some XF aficionado here has run across something like this in the past and can lend me a helping hand.
Thanks in advance for any assistance you can provide.
Kyle Humfeld