• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

Progressive jpg while loading


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

1 Solution
"RenderProgressive Not used in GDI+ version 1.0. "

I'm sure this is because it renders progressive by default?
chiii0utAuthor Commented:
Thanks for the clarification
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now