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


Similar Messages:

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

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 :: 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

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

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

ITextSharp Renders Image With Poor Quality In PDF

Mar 26, 2010

I'm using iTextSharp to print a PDF document. Everything goes ok until I have to print the company logo in it.

First I noticed that the logo had poor quality, but after testing with several images, I realize that was the iTextSharp rendering it poorly.The test I did to say this was to print the PDF using my code and then edit the document with Acrobat 8.0 and I drew an image. Then printed the two documents and saw the noticeable difference.My question is that if anyone know if this can be due to a scaling problem where I'm failing to tell iTextSharp how it must render the image or is an iTextSharp limitation.

The code to render the image is the following:

[Code]....

The method ResizeImage() do the resizing of the width and height respecting the aspect ratio and keeping in a max width and a max height limits.

View 2 Replies

How To Enlarge An Image (any Type) From C# Without Losing Quality

Jan 6, 2010

app would be in asp.net and c# (4.0)

View 3 Replies

Architecture :: Measuring Code Quality In VS 2010?

Feb 14, 2011

How do I measure code quality in VS 2010. What I am specifically looking for is Industry standards How do I measure this

View 1 Replies

C# - Find Quality Videos On .Net Programming Subjects?

Mar 11, 2011

I'd like to setup some lunch-and-learn sessions in my company where we all watch a presentation of some programming-related topics. Where are some good places to find videos about Microsoft technologies with a clear picture and high audio quality that are about 30-60 minutes long?

They could be about design patterns, best practices, new language features, new frameworks, getting better performance, etc.

View 7 Replies

How To Check The Quality And Bit-rate Of Audio & Video Files In C#

May 21, 2010

How can I check the quality and bit-rate of audio & video files in C# asp.net?

View 1 Replies

C# - Create Better Quality Higher Resolution Thumbnail Image

Sep 28, 2010

I am looking c# code which creates better quality higher resolution thumbnail image. i am having an image of dimension(600 * 900) and i need to create thumbnail of dimension (100 * 100) with high quality.

View 3 Replies

How To Organize The Work After Project Needs To Be Re-implemented Due To Poor Code Quality

Apr 28, 2010

I have been asked to join a very small team where one main developer has been buiding the web app (.NET 4.0) during ~6 months. The project should be delivered within next 2 months.

After first look at the code I can say that I would never allow it to go to production (things like catch { }, no tests at all with WebForms etc).

So the code quality is incredibly low.

My task is to improve that and still deliver the solution. So I plan to start with unit testing and MVC2 reimplementing most of the functionality (though using some of the existing code).

I estimate that I will need about 6 weeks to catch up with the current progress and be on te same functionality level as the application will be in 6 weeks.

The problem is that the main developer who has been working on the project seems to be really starting in IT and many basic things are unknown to him. It will take significant amount of time and effort to educate him how to do the proper testing, development and apply some patterns.

I am ready to take responsibility for the reimplemnting the application but at the same time I don't want the main developer to be on idle but as he won't be able to significantly contribute to the better-world project at this stage I am not sure what would the best way to keep productivity high for both of us.

Currently I think following solution is good enough: He proceeds doing what he does until I will catch up with him and then start working on a new project together.

The problem is that of course this approach is not very productive as one developer will do better-world project while the other will proceed with what he did, effectively doing similar tasks.

Another approach would be to pair and try to do things together, but again not sure how productive we will be.

Can you suggest how we could better organise the work together in order to be most efficient for the overall project?

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

Social Networking :: How To Get High Quality Album Photos From Facebook

Aug 23, 2013

I have refer source code and apply to my web from your article as 

<a href="http://www.aspsnippets.com/Articles/Import-Facebook-Album-Photos-and-display-as-">Here</a>:

It successful get the album and photos. But I have a question about how do i get the higher quality photo ?

For example:

image as below is get according your code: [URL] ....
 
Image as below is get from facebook by click to album and view: [URL] ....

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

How To Reduce Box Size

Aug 13, 2010

I have the line where is goes "Hide Suggested budget with tolerance %' then the box is too large. It is almost fine, you can see here

[URL]

The box holding the '5' for the Tolerance percent is too large. How can I reduce this?

the code for all this area is here:

[URL]

View 2 Replies

.net - Reduce This IF-Else Ladder In C#?

Apr 8, 2010

This is the IF -Else ladder which I have created to focus first visible control on my form.According to the requirement any control can be hidden on the form.So i had to find first visible control and focus it.

if (ddlTranscriptionMethod.Visible)
{
ddlTranscriptionMethod.Focus();

[code]...

View 10 Replies

Reduce Spacing In Silverlight

Feb 26, 2010

I have two lines of labels each in a Horizontal StackPanel. When they display there is a wide space (about an inch) between them. I can't figure out how to reduce this spacing. The height characteristics does not seem to do it.

<UserControl x:Class="SilverlightApplication1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" Margin="10">
<StackPanel x:Name="LayoutRoot" Background="LightGray" Margin="10">
<StackPanel Orientation="Horizontal" Height="50" Width="500" Margin="10">
<TextBlock Height="15" Width="100" Margin="20"/>
<TextBlock Text="Heading" Height="15" Width="100" Margin="10"/>
<TextBlock Text="PDOF" Height="15" Width="100" Margin="15"/>
<TextBlock Text="PDOF" Height="15" Width="100" Margin="15"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Height="50" Width="500" Margin="10">
<TextBlock Height="15" Width="100" Margin="20"/>
<TextBlock Text="(degrees)" Height="15" Width="60" Margin="10"/>
<TextBlock Text="locked" Height="15" Width="40" Margin="10"/>
<TextBlock Text="(degrees)" Height="15" Width="100" Margin="15"/>
<TextBlock Text="(O'Clock)" Height="15" Width="100" Margin="15"/>
</StackPanel>
</StackPanel>
</UserControl>

View 2 Replies

How To Reduce Gap Between 2 Tables In Javascript

Jul 23, 2010

I am using Javascript for my ascx control. I have 2 tables, one below the other. My code written is like

</tr>
</table>
<table style="border-spacing: 15px;">

But when i execute, it shows almost 2 inch space between them.

View 3 Replies

Reduce PDF Size On Upload To Database?

Oct 25, 2010

I have an application that allows users to upload a pdf. I am saving the PDF into SQL (I know already this is not the best practice, but it was not my decision) and I need to some how duing this upload process reduce the size of the pdf. Is there a way to get the uploaded file, reduce its size, then stream it to SQL?

View 12 Replies







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