0

Hi all

In my file upload control i uploaded a large image, let say of 3 MB, how can i reduce its file size to kbs.

I am also re sizing that image and maintaining its quality, that's ok, but how can i reduce its file size.

4
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by Atul Dhiman
0

Well, let's see, i'm not a guru when it comes to these things. I suggest that u keep things simple if it won;t hurt you. Resize the image before using it, i think that would be a much easier way.
Anyway it depends on what you are doing with that image....

0

HI sir i read your Question,, I didn't exact ally understand your Question but
suppose if you are using GridView or DetailView to show the image Just Fix the Height and Width of image with Properties here

see here

<asp:TemplateField HeaderText="Image">
                                <ItemTemplate>
                                    <asp:Image ID="Image1" runat="server" Height="100px" 
                                        ImageUrl='<%# Eval("path") %>' Width="100px" />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:FileUpload ID="FileUpload1" Filename='<%Bind("path") %>'  runat="server"  /> 
                                </EditItemTemplate>
                            </asp:TemplateField>

Edited by Ezzaral: Snipped promotion link.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.