?
Solved

Progressive jpg while loading

Posted on 2008-06-26
2
Medium Priority
?
355 Views
Last Modified: 2013-12-25
Hi

I've been using system.drawing to resize jpgs for a website. Is there any method in there for progressive browser display of the image while loading? I used to optimize images in Fireworks but now want to automate the task.

Thanks Paul
Private Sub CopyToDir(ByVal dimW As Integer, ByVal dimH As Integer, ByVal destn As String)
        Dim sourceBitmap As New Bitmap(currentImage)
 
        Dim destBitmap As New Bitmap(dimW, dimH)
        destBitmap.SetResolution(72, 72)
        Dim destGraphic As Graphics = Graphics.FromImage(destBitmap)
 
        destGraphic.DrawImage(sourceBitmap, 0, 0, _
         destBitmap.Width + 1, destBitmap.Height + 1)
 
 
        destBitmap.Save(destn, ImageFormat.Jpeg)
    End Sub

Open in new window

0
Comment
Question by:chiii0ut
2 Comments
 
LVL 10

Accepted Solution

by:
bluefezteam earned 1000 total points
ID: 21874781
http://msdn.microsoft.com/en-us/library/system.drawing.imaging.encodervalue.aspx
"RenderProgressive Not used in GDI+ version 1.0. "

I'm sure this is because it renders progressive by default?
0
 
LVL 3

Author Closing Comment

by:chiii0ut
ID: 31470934
Thanks for the clarification
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question