[Implemented] JPG Encode Quality

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] JPG Encode Quality

Post by BackupUser »

Restored from previous forum. Originally posted by geoff.

JPG image load and save are welcome additions in PureBasic 3.60, however, SaveImage() would be more useful if it were possible to set the JPG quality.

The current SaveImage() gives about 20:1 compression with corresponding low quality. For digital photographs you might use 3:1 for archiving and 8:1 for Web publishing. You need to set this depending on the application.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

so basicly you're asking for a SetJPGQuality() command or the adding of an argument to the SaveImage() command? either way would be nice..
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by geoff.

Well, more than nice, fixed 20:1 compression is no use at all for me.

Is this really missing?
Someone tell me if I've missed something here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

I will ad a flag to SaveImage(), no problem.

Fred - AlphaSND
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: [Implemented] JPG Encode Quality

Post by Michael Vogel »

I would like to get a better control for the compression level when saving jpeg files, the given 10% steps (1%, 10%, 20%,... 90%, 100%) results are not so perfect for photos. A typically used compression value is 97% or so. Of course, enhanced features (like color sampling, Huffman optimizing etc.) would be fine, but that's another story...
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: [Implemented] JPG Encode Quality

Post by c4s »

Michael Vogel wrote:I would like to get a better control for the compression level when saving jpeg files, the given 10% steps (1%, 10%, 20%,... 90%, 100%) results are not so perfect for photos. A typically used compression value is 97% or so. Of course, enhanced features (like color sampling, Huffman optimizing etc.) would be fine, but that's another story...
+1
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: [Implemented] JPG Encode Quality

Post by davido »

+1
DE AA EB
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: [Implemented] JPG Encode Quality

Post by Dude »

Who marked this as "[Implemented]"? Hopefully Fred?
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: [Implemented] JPG Encode Quality

Post by Danilo »

Dude wrote:Who marked this as "[Implemented]"? Hopefully Fred?
Yes... 12 years ago. :D
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [Implemented] JPG Encode Quality

Post by Fred »

We don't read [Implemented] topic anymore, so it's not exactly the same request, it's much better to open a new topic or it will probably be missed.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: [Implemented] JPG Encode Quality

Post by Dude »

Danilo wrote:Yes... 12 years ago. :D
What? It didn't say that the other day when I read this topic. :shock:
Post Reply