Replies: 1 comment 5 replies
-
|
You mean you want to save a file? Pass a string target or use a FileStream |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I have a new function that takes an image byte array, resizes it, then returns the resized image as a byte array. If I do File.WriteAllBytes("C:\temp\myfile.jpb") with the original array, it works so I know that is good. The code I used didn't work so I tried just loading the original array into an Image variable and saving it to another byte array Somehow this increased the size and saved in an unsupported format.
Image file size: 1.92mb
Width:2316, Height:3088.
I want to resize to 640x480 maintaining aspect ratio
I was using a Syncfusion ImageEditor which works, but I have to have it visible on the UI page so I don't really want that. It saved the image to
Image file size: 1.34mb (seems high)
Width:640, Height:853.
so I figure I'm trying to get to around that.
How do I save correctly to the new byte array so I can just do File.ReadAllBytes to save later?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions