Implement standard jpeg compression functionality
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Implement standard jpeg compression functionality
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...
Re: Implement standard jpeg compression functionality
This might be useful... http://www.purebasic.fr/english/viewtop ... 24#p461824
- It was too lonely at the top.
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Re: Implement standard jpeg compression functionality
+1
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: Implement standard jpeg compression functionality
+1
I wonder if PB's currently provided functionality has been arbitrary limited for "simplicity"
I wonder if PB's currently provided functionality has been arbitrary limited for "simplicity"

Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Re: Implement standard jpeg compression functionality
@Shield
In my opinion advanced features (such as color sampling, Huffman optimization etc.) aren't mandatory. Being able to specify the quality level from 0-100 instead of 0-10 would already be cool enough.
In my opinion advanced features (such as color sampling, Huffman optimization etc.) aren't mandatory. Being able to specify the quality level from 0-100 instead of 0-10 would already be cool enough.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: Implement standard jpeg compression functionality
I doubt it. The concept of percentages is understood by everyone with a primary school education.Shield wrote:I wonder if PB's currently provided functionality has been arbitrary limited for "simplicity"
Re: Implement standard jpeg compression functionality
Compressing images isn't just about setting a compression value. It usually requires several parameters to be set
in order to achieve the best possible outcome (algorithm, method, buffer sizes, ...). Depending on what libraries
are used by PB, it might very well have been easier to just implement ten pre-selected configurations.
in order to achieve the best possible outcome (algorithm, method, buffer sizes, ...). Depending on what libraries
are used by PB, it might very well have been easier to just implement ten pre-selected configurations.
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: Implement standard jpeg compression functionality
Not bad, but it would be nice to do this things without the use of external programs...blueb wrote:This might be useful... http://www.purebasic.fr/english/viewtop ... 24#p461824
Here's what I am doing actually: ShowRoom (just press 'Return' multiple times after starting the program)
Re: Implement standard jpeg compression functionality
Here you go... set the compression from 0 to 100 as you see fit:Michael Vogel wrote:it would be nice to do this things without the use of external programs
http://www.purebasic.fr/english/viewtop ... 98#p253898
Thanks to srod.
