Opened 10 years ago
Closed 10 years ago
Last modified 10 years ago
#531 closed enhancement (fixed)
Compression Options for Images
|Reported by:||Duncan||Owned by:|
|Component:||programming||Keywords:||artefacts, images, review|
Currently the resized images are quite heavily artefacted. It would be nice if the user (or possibly the server owner) could set custom compression levels to trade off size/quality.
Change History (5)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Quality option added to the config file works great https://gitorious.org/~dunkyp/mediagoblin/dunkyps-mediagoblin/commits/image_quality
comment:3 by , 10 years ago
comment:4 by , 10 years ago
|Status:||new → closed|
Excellent work on this... sorry it took so long for me to review! I've merged it!
comment:5 by , 10 years ago
I also switched the default quality level to 85. I wouldn't be against bumping it up to 90... I wonder what others think.
This should actually be quite easy. Set resized.save(resized_file, quality=100) in "processing.py". However it might be nice if we could convert from png to jpeg and vice vesras.
Need to decide on whether to set this as a global option or something the user can decide on a per upload basis.
On the plus side setting quality higher looks MUCH better!