Solved

Progressive jpg while loading

Posted on 2008-06-26
2
339 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 250 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

803 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