Solved

Progressive jpg while loading

Posted on 2008-06-26
2
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MYSQL responding very slow 3 50
How can I do Unit Testing with Session ? 1 23
Include MS Database in Winforms Project using Intellilock 5 21
Saving Web Page as PDF 9 47
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
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…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

726 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