Solved

Compressing Progressive JPEG ?

Posted on 2000-04-20
3
295 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Path  to current project in Delphi. 2 91
Delphi - replicating a form 8 81
Print Graphic and Text to Epson TM-T88v 12 373
How to make Sign in, using Clientdataset? 1 28
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

809 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