Web Forms :: Reduce Picture Quality And Save It

Mar 18, 2013

I am uploading images in c# windows application. I am uploading the images folder wise. In one folder there are 200 to 3000 images. My one images size is about 3.10 MB to 6.2 MB. Its dimensions are 3008 x 1960, 1960 , 4000 x 2600. 6000 x 4000 . while uploading i am reducing the size of image to 400 x 266 or 266 x 400 depending on the height and width of image. but still my image size is about 227 KB. Now i want to reduce the image resolution to decrease the image size.

My code is given below:

private void btnUpload_Click(object sender, EventArgs e)
{
getDestinationPath();
string ik = DestinationPath;
string ik2 = DestinationPath2;
string lastFolderName = Path.GetFileName(ik);

[Code] .....

View 1 Replies


Similar Messages:

How To Reduce The Quality Of The Picture So It Is Less Than 10 KB

Jan 15, 2011

I am using asyncfileupload ajax control and can successfully upload and save picture on server.I need to do the following and not sure how:When user is in process of uploading, I only want them to see *.jpg *.gif and *.bmp files
Once the user uploads their picture, how do I reduce the quality of the picture so it is less than 10 KB?

View 1 Replies

Web Forms :: Without Effecting Quality Reduce Image File Size While Resizing Saving To Folder

Aug 31, 2013

I have uploaded a .jpg image and resized as Small and Large thumbnail. The small image is (135 X 173) but after resizing the small thumbnail image file size is of 40.8 KB. And mostly all images (around 64) thumbnails having file size more than 40 KB. Due to which thumbnails taking lot of time to get display.

Is there a way through which we can reduce the image file size upto 8 to 12 kb, but without effecting image quaity??

Below is the source code that i am using for resizing an image:

If FileUpload1.HasFile Then
Dim stream As Stream = FileUpload1.PostedFile.InputStream
Dim x As String = IO.Path.GetExtension(FileUpload1.FileName).ToLower
If x = ".jpg" Or x = ".jpeg" Then
Dim image As New Bitmap(stream)

[Code] .....

View 1 Replies

Web Forms :: How To Allow User To Upload Picture And Then Save The Picture In Database

Feb 8, 2011

i'm new to c# and i wanted to know how can i allow user to upload a picture from a text box and a button??

after uploading the picture, how can i save the picture in the database??

**note**the picture i allow user to upload need to be in a fixed size.

View 4 Replies

Web Forms :: Save A Div As A Picture (aspx Page)?

Feb 6, 2011

Using C#

How can i save a Div (tabel) in .aspx page as a Pic (jpeg or anything) ?

View 2 Replies

Save A Picture In One Folder Up From There Where Call The Mappath?

Mar 28, 2011

i want to save a picture in one folder up from there where i call the mappath how can i do that?

for example i am here

c:usersmevstproject

and i want to save the file here

c:usersmevst

i want to do that with mappath in order to work in the server.not only in my pc..

View 9 Replies

How To Write A Code About Get A Picture From Url And Save As Bitmap

Mar 17, 2010

I had write a code about get a picture from url and save as bitmap. However, there was a problem in HttpWebResponse. It didn't run the code start from HttpWebResponse.Then my whole website die there.

[Code]....

View 8 Replies

Architecture :: How To Save The Picture File On Server

Oct 26, 2010

If i want to create a web site that take your picture and share it for your friends, what the best way to save the picture files on server? What the way is safer for the picture files? What the way has the best performance?

View 9 Replies

SQL Server :: Save Image As Picture In Sql Databases For Consumer Profile

Oct 28, 2010

i help save image as picture in sql databases for consumer profile now i possess a site that sow consumer profile facts an im this site i possess a picture manage to display consumer avatar with. in code at the rear of with Userprofile.Avatar code i obtained the picture as byte

View 4 Replies

Social Networking :: Save Facebook User Profile Picture And Details To Database

May 7, 2015

I obtained the facebook profile details of an user.Now I need to store the profile details including profile picture in my local database.

View 1 Replies

Web Forms :: Get Full Picture When Try To Put Picture In Image Control?

Dec 23, 2010

I have this code to insert a picture from database into an ImageControl on my ASP.NET form:

strConnString = "server=" + Server + ";database=" + DataBase + ";UID=" + UID + ";password=" + PASS + ";";SqlConnection MyConnection = new SqlConnection(strConnString);SqlCommand MyCommand = new SqlCommand("SELECT Pic FROM MEN WHERE ID=5", MyConnection);MyConnection.Open();SqlDataReader MyReader = MyCommand.ExecuteReader();if (MyReader.Read()){ byte[] m_MyImage = (byte[])MyReader["Pic"]; Response.BinaryWrite(m_MyImage);}

And I have this ImageControl on the form:

<asp:Image Width="88" Height="100" Runat="server" ID="m_Image" NAME="m_Image" />

but when I run the code, I see the picture big on the screen and not in my ImageControl.

i also put this in the form_load:

m_Image.ImageUrl = "MyPhoneBook.aspx?m_Image";my control is: m_Imagemy control ID is: m_Imagemy namespace is MyPhoneBook

but still dont work

View 5 Replies

Web Forms :: Uploading Picture - Error "picture Could Not Be Attached"

Mar 1, 2011

I ve an application dat am working on. The section of the upload picture works perfectly on the development environment and also on a test server but the issue comes up when it was hosted life. I started geting an error dat says picture could not be attached. I ve a folder cald Passport and dis ve been working for me on befor now but i dont now the reason y its not working now.

protected void btnUpload_Click1(object sender, EventArgs e)
{
Boolean fileOK = false;
String fileExtension = string.Empty;
String path = Server.MapPath("~/Passport/");
if (fuPassport.HasFile)
{
fileExtension = System.IO.Path.GetExtension(fuPassport.FileName).ToLower();
String[] allowedExtensions = { ".gif", ".png", ".jpeg", ".jpg" };
if (allowedExtensions.Contains(fileExtension))
{
fileOK = true;
}
}
else
{
Utilities.PortalMessage = "Please attach an image file.";
return;
}
if (fileOK)
{
try
{..............................

View 3 Replies

Web Forms :: How To Create Quality Web Graphics And Animation

Feb 6, 2010

how to get the best software to use for the following?

(i) Web graphics: Apart from Photoshop what is the best easy to use program (minimum learning curve)for producing quality drawings suitable for a website?I know that there are many graphic programs around but I want one that is easy to use and produces QUALITY drawings.

(ii) Animations: Similarly I am looking for an easy to use animation program. I have used Flash before but I feel that there is a steep learning curve. Is there a better program out there?

View 3 Replies

Web Forms :: Compress Video Size Before Uploading Without Losing Quality

Feb 26, 2014

I am trying to upload large videos(more than 1GB) to youtube from webpage. But youtube is allowing me to upload max 8MB videos. So I want to reduce the size of the video and then upload the reduced video  to youtube. So, how to reduce the video size.

View 1 Replies

Forms Data Controls :: Free High Quality Chart To Show Balance Sheet From Database

Apr 19, 2010

Im using asp.net 2.0 with Visual studio 2005... My requirement is i want to show my balance sheet from MS SQL 2005 database to graphical Chart... so Would u guyz will let me know the best high qulaity chat which support asp.net 2.0 with Visual studio 2005..

View 3 Replies

Web Forms :: Reduce The Interval Between Two Textbox?

Jul 11, 2010

If you use a space <br /> this is a little too much space.Is it possible to reduce the interval between two textbox?

View 6 Replies

Web Forms :: Reduce The Length Of .net Generated Control ID's?

Aug 25, 2010

I'm looking for ways to reduce the size of my page . I have a page that just renders a gridview - no images - and it is over 400k!

Looking at the html that is generated I see the names of the controls in the gridview are very very long. For example: ctl00_ContentPlaceHolder1_releaseGV_ctl149_lblBuy

My gridview is about 200 rows by 13 columns = ~ 2600 spans with very long names rendered. The above example is 49 characters X 2600 controls = 127,400 characters just in control ID's!

The actual data on my page ins't anywhere near a tenth of that!

I am already storing viewstate on the server.

YES, I will put a pager on this page to bring down the number of rows. Also, I've seen sever other posts related to page size with some excellent content. I will follow up on them - however I have not seen this specific question answered.

Here is a sample of my page. As you can see there is not much data and a lot of html!

[Code]....

View 5 Replies

Web Forms :: Reduce Filkering And Increase Perfamance?

May 25, 2010

I have an asp.net application written in C# and need some help to fine tune it for better performance. All pages with in this web application have horizontal tab, left vertical menu panel , footer and header. Left menu panel changes as per top tab selection.

View 2 Replies

Web Forms :: Reduce Filkering And Increase Permanence?

May 25, 2010

I have an asp.net application written in C# and need some help to fine tune it for better performance. All pages with in this web application have horizontal tab, left vertical menu panel , footer and header. Left menu panel changes as per top tab selection.

View 1 Replies

Web Forms :: How To Reduce Size Of Barcode Font In C#

Sep 30, 2012

i want to reduse the size of barcode image in this code . i tried to reduce but its cutting the number ...  how can i reduce the size of this barcode image

string barCode = TextBox2.Text;
System.Web.UI.WebControls.Image imgBarCode = new System.Web.UI.WebControls.Image();
using (Bitmap bitMap = new Bitmap(barCode.Length * 40, 80))

[Code]....

View 1 Replies

Web Forms :: Reduce Image Size And Dimensions Using C#

May 30, 2012

I have many image in my page my images size are between 100 -200kb I want redeuce my images size to 4-5Kb ... How I can do it? is there any control to do it?

View 1 Replies

Web Forms :: How To Reduce Website Loading Time

Dec 27, 2012

I want increasing my website pages loading speed 

I know one of thing is compress css file is there other thing that I do to increasing webpage loading speed?

View 1 Replies

Source Code Quality Management?

Mar 1, 2010

In the Java world for instance, there are some very sophisticated tools to manage the quality of the source code, and that cover more than one dimension, such as :

Coding Rules
Comments
Complexity
Unit testing
Code coverage
etc.

These tools are very useful to manage the technical debt. They connect to a repository of source code and scan it. They can be triggered automatically just by the fact of committing the source code.We have a large number of ASP.NET applications to maintain and evolve, and have continuous flow of demands for new ones to be created. We know that we have a technical debt, but we are facing some challenges of identifying it and having it under control.

there are some tools to manage the source code quality in ASP.NET applications like those mentioned above.

View 4 Replies

Resizing Image In Losing Quality?

Sep 28, 2010

I have a script which resizes images, I did not write this script, nor do I know any ASP.NET, but I have been assigned the task of fixing an issue with it!

The problem is, the resulting image from the resize appears to be of less quality than the upload, even if the file uploaded is already set to the correct size.

Uploaded image - [URL]
Resized image - [URL]

The script that is doing the resizing is as follows, how to correct the issue?

[Code]....

View 2 Replies

Best Way To Make High Quality Reports?

Jan 6, 2010

In our project We made reports with the method that return as a datatable from a class with dynamic sql.

Nowadays, we think to migrate to more professional technic for our reports. For this purpose I examine crystal report and devexpress' XtraReport components.

However, I Couldn't decide which component and method(dynamic sql, stored procedure etc.) should I use.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved