Solved

Compressing Progressive JPEG ?

Posted on 2000-04-20
3
292 Views
Last Modified: 2010-04-04
I have a TBitmap and i want to save
it to JPeg format as small as possible
with Progressive & Quality at 75% without
smoothing... any ideas ? =)
0
Comment
Question by:k6__
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Epsylon earned 50 total points
ID: 2736420
Smoothing only applies when decoding so I think this should be it:

uses JPEG;

procedure BMP2JPG(bmp: TBitmap; filename: String);
var jpg: TJPEGImage;
begin
  bmp := ........
  jpg := TJPEGImage.Create;
  jpg.Assign(bmp);
  jpg.ProgressiveEncoding := true;
  jpg.CompressionQuality := 75;
  jpg.SaveToFile(filename);
  jpg.Free;
end;


Regards,

Epsylon.
0
 
LVL 2

Author Comment

by:k6__
ID: 2736864
Thank you! btw.. can i squeeze it more
without changing compression quality ?
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2737820
I'm afraid not...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

939 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now