Greetings:
I have a client who currently is able to upload graphic file(s) to his website for display. My client is a restaurant owner and, as I believe most clients would agree, does not want to be bogged down with graphic file size do to DPI or dimensions of the the graphic.
I use VB.NET and Visual Studio Pro 2017.
I would like to manipulate the DPI and graphic dimensions for him. What I need to adjust are:
- DPI
- width or length keeping the aspect ratio of the graphic
I am not savvy when it comes to graphic files. I do know how to gain addressability to the graphic file IO stream after upload.
I need mentoring on how to do these two things and save the graphic file as a smaller version of itself.
Any assistance is greatly appreciated.
Much thanks,
David Bach
I was able to use both your suggestions to obtain the results for my client!
I did make changes to the code behind as follows:
My code behind with changes follows.
Open in new window
Much thanks for your help, Chinmay!David Bach