How To Enlarge An Image (any Type) From C# Without Losing Quality
Jan 6, 2010app would be in asp.net and c# (4.0)
View 3 Repliesapp would be in asp.net and c# (4.0)
View 3 RepliesI 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]....
I am developing an ASP.NET 3.5 web application in which I am allowing my users to upload either jpeg,gif,bmp or png images. If the uploaded image dimensions are greater then 103 x 32 the I want to resize the uploaded image to 103 x 32. I have read some blog posts and articles, and have also tried some of the code samples but nothing seems to work right.
View 4 RepliesI 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[URL]
used the css and html from the above sample code , but instead of the actual image i get loader image
i am using datalist to display image
<asp:ListView ID="ListView1" runat="server">
<LayoutTemplate>
<ul class="ProductList">
<asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
[Code].....
<asp:ImageField DataImageUrlField="photo" > <ItemStyle Width="50px" Height ="50px"
HorizontalAlign="Center" VerticalAlign="Middle" ></ItemStyle>
</asp:ImageField>
i need to display image from database in gridview. i have the above html and a select query executed from code behind which displays the image.
i am storing the image path in the database table and image in a folder.
Queries related to above
1. image size not able to set
2. the gridview image column will display image if the column data is not blank. but if its blank i have 2 default images male image and female image
so if the field is blank i need to display one of the default images depending on the gender selected
3. if the image is clicked it should show enlarged image as popup
iam using this jquery for displaying the image....but it displays the image as very small image though image is big...how to enlarge the image..within this code
var newImage = $('<img />');
newImage.attr('src', '<%= ResolveUrl("../../Content/Images/" )%>' + optionData.Image);
$('#Id2').append(newImage);
Displaying images on gridview is never been a problem to me but how can i enlarge my image onmouseover event in gridview?
View 2 RepliesI m ina problem and don't know how to fix it: I have six imagebuttons what i want is whenever user will click on any one of it he should be navigated to other page where the same image should be displayed enlarged- Now for that my aspx source code for awards page where all imagebuttons lies is-
[Code]....
Now where should i use querystring to hold imageurl in above code and how can u plz provide me the required code Secondly, on second page i am using aspx image control to show enlarged image How can i use querystring to assign imageurl of previous page image button to it
I want to know how to enlarge image while hover or click on it ,using datalist from database in binary format..
View 1 RepliesI am referring the link [URL] ....
View 1 RepliesI'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.
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 RepliesI 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] .....
how can i store image into database and view it in grid view?
View 3 RepliesThere are many tables nested inside as it showd in the following three images. give an idea so that I can see the circled images fully in the third image.. if you want any html code of o a part, I can share it here on request.. Now
*1*
2
The Desired Html Page: The Final Scene:
I've got a series of thumbnail images in a GridView control as well as a Template field for a larger version of the image when the thumbnail is clicked.I'd like to be able to click a thumbnail and update the larger image in the gridview with the appropriate new image.What would be the best (easiest for a newb!) way to do this?I'd like to avoid a whole page refresh and keep it to just the image.
View 4 RepliesI have a gridview that i can insert new rows in it like this:
[URL]
I want to know how I can enlarge textbox when user click on the textbox and he write a lot of text and when he click on next textbox the previous textbox will be small and it show first line of the text that the user input in it
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?
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.
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.
I am novice to IT field. Recently, in my project I have to capture user details, which includes user picture. I am storing inputs in the datatable. I have defined picture column as image type. I am not be able to get through this. FYI: I have tried using XMLSerialisation
View 2 Replieshow 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?
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 RepliesI'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.