Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

UIImage.FromFile (Path).AsJPEG ().ToArray () is giving the wrong file size

$
0
0

I have a JPEG Image that is 1000 × 957 and 188KB. I'm doing the following: Resize and Crop to 800x800 and Save with JPEG Compression of 0.6 to my Path.

The file size is now 70KB on disk and when I preview the Image it has been cropped and resized to 800x800 as expected.

The problem is that when I access the JPEG file again to upload to my server calling UIImage.FromFile (Path).AsJPEG ().ToArray (), gives me the Image with the 800x800 dimensions but now with a content size of 226KB, which is actually bigger than the original image ?

Anyone have any idea of what could be causing this?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>