Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-11

TFPWriterJPEG quality

14 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aradeonas

Hi,

Why?TFPWriterJPEG default quality is set to 75? I think there isnt need for this and if anyone want more compression he will set it.

constructor TFPWriterJPEG.Create; begin? inherited Create; FQuality:=75; end;

Also it is in?TJPEGImage :

constructor TJPEGImage.Create; begin? inherited Create;? FPerformance := jpBestQuality;? FProgressiveEncoding := False;? FGrayScale := False;? FQuality := 75; end;

Regards, Ara

http://www.fastmail.com - The professional email service -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151118/efb03fa5/attachment.html>

Reply by email

Aradeonas

Hi,

Why?TFPWriterJPEG default quality is set to 75? I think there isnt need for this and if anyone want more compression he will set it.

constructor TFPWriterJPEG.Create; begin? inherited Create; FQuality:=75; end;

Also it is in?TJPEGImage :

constructor TJPEGImage.Create; begin? inherited Create;? FPerformance := jpBestQuality;? FProgressiveEncoding := False;? FGrayScale := False;? FQuality := 75; end;

Regards, Ara

http://www.fastmail.com - Email service worth paying for. Try it for free -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151118/8b56d136/attachment.html>

Reply by email

Aradeonas

Hi,

Why?TFPWriterJPEG default quality is set to 75? I think there isnt need for this and if anyone want more compression he will set it.

constructor TFPWriterJPEG.Create; begin? inherited Create; FQuality:=75; end;

Also it is in?TJPEGImage :

constructor TJPEGImage.Create; begin? inherited Create;? FPerformance := jpBestQuality;? FProgressiveEncoding := False;? FGrayScale := False;? FQuality := 75; end;

Regards, Ara

http://www.fastmail.com - The way an email service should be -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151118/bdb63227/attachment.html>

Reply by email

Mattias Gaertner
to Aradeonas: Why?TFPWriterJPEG default quality is set to 75? I think there isnt need for this and if…
Show quoted text 11 lines
Hi, Why?TFPWriterJPEG default quality is set to 75? I think there isnt need for this and if anyone want more compression he will set it. > constructor TFPWriterJPEG.Create; begin? inherited Create; > FQuality:=75; end; Also it is in?TJPEGImage : > constructor TJPEGImage.Create; begin? inherited Create;? FPerformance > := jpBestQuality;? FProgressiveEncoding := False;? FGrayScale := > False;? FQuality := 75; end;

Quality must be set to a valid value. Why not 75?

Mattias

Reply by email

Rik van Kekem
to Aradeonas
Aradeonas wrote
Maximum 100 I think.At least it is better that 75. More is better ;)

Doesn't 100% create a (much) bigger file as a result?

I think some other programs are using 90% as default. (always presented to the user to change !!)

http://photo.stackexchange.com/questions/30243/what-quality-to-choose-when-converting-to-jpg

Either way, it's up to the programmer/user to set the real compression. It could be default set to 1 because you'll always need to "reset" it. (never trust the default value of a compression-setting !!)

Grtz,
Rik (rvk)

Reply by email

Norbert Crettol
to Mattias Gaertner: On Wed, 18 Nov 2015 05:22:44 -0800 If you want a lossless image, you use for example png,…

Hello,

To display my photographs on a monitor,
I usually use a 80% jpeg compression.
That's not good for printing but fair
enough for a computer monitor. If you
want a better quality, don't compress.

Norbert

BTW: this is my first post on this list

Mattias Gaertner wrote 18 lines
On Wed, 18 Nov 2015 05:22:44 -0800 Aradeonas wrote: > Maximum 100 I think.At least it is better that 75. More is better ;) If you want a lossless image, you use for example png, not jpg. (100 in jpg is still not lossless). You choose the jpg format to get a small file. 100 is definitely not the best default. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Lukasz Sokol
to Norbert Crettol
Norbert Crettol wrote 26 lines
On 18/11/15 14:38, Mattias Gaertner wrote: > On Wed, 18 Nov 2015 05:22:44 -0800 > Aradeonas wrote: > >> Maximum 100 I think.At least it is better that 75. More is better ;) > > If you want a lossless image, you use for example png, not jpg. > (100 in jpg is still not lossless). > You choose the jpg format to get a small file. > 100 is definitely not the best default. > > Mattias > Hello, To display my photographs on a monitor, I usually use a 80% jpeg compression. That's not good for printing but fair enough for a computer monitor. If you want a better quality, don't compress. Norbert BTW: this is my first post on this list

Hi Norbert,
you're welcome,
please note, that the netiquette of this list asks to preserve the order in which the messages are being answered to;

(with your answer inline or under the message you are replying to).

(unless you have a reason not to, e.g.
using a screen-reader / voice composer for visually impaired)

(I let myself to rearrange this message accordingly as an example)

There are numerous reasons why it is so, feel free to search the Net for 'Netiquette' ;)

Kind Regards

el es

Reply by email

Norbert Crettol
to Lukasz Sokol
Lukasz Sokol wrote 42 lines
On 18/11/15 13:55, Norbert Crettol wrote: > On 18/11/15 14:38, Mattias Gaertner wrote: >> On Wed, 18 Nov 2015 05:22:44 -0800 >> Aradeonas wrote: >> >>> Maximum 100 I think.At least it is better that 75. More is better ;) >> >> If you want a lossless image, you use for example png, not jpg. >> (100 in jpg is still not lossless). >> You choose the jpg format to get a small file. >> 100 is definitely not the best default. >> >> Mattias >> > Hello, > > To display my photographs on a monitor, > I usually use a 80% jpeg compression. > That's not good for printing but fair > enough for a computer monitor. If you > want a better quality, don't compress. > > Norbert > > BTW: this is my first post on this list > Hi Norbert, you're welcome, please note, that the netiquette of this list asks to preserve the order in which the messages are being answered to; (with your answer inline or under the message you are replying to). (unless you have a reason not to, e.g. using a screen-reader / voice composer for visually impaired) (I let myself to rearrange this message accordingly as an example) There are numerous reasons why it is so, feel free to search the Net for 'Netiquette' ;)

Thanks for the reminder. I'll do that

Norbert

Reply by email

Rik van Kekem
to Norbert Crettol
Norbert Crettol wrote 5 lines
On 18/11/15 15:32, Lukasz Sokol wrote: > There are numerous reasons why it is so, feel free to search the Net > for 'Netiquette' ;) Thanks for the reminder. I'll do that

Also strip all non-relevant quoting from your reply :)

Grtz,
Rik

Reply by email