PetteriAimonen / focus-stack

Fast and easy focus stacking
MIT License
249 stars 37 forks source link

Add --jpgquality parameter. #6

Closed fraf0 closed 3 years ago

fraf0 commented 3 years ago

Hi,

I propose this patch to be able to manage the level of quality of the final JPEG (and the intermediates if asked to be writen). Default value: 95.

Why? Sometime, I need to retouch the image produced by focus-stack and I wish to keep the best quality until the very final file.

`$ ./focus-stack/build/focus-stack *.jpg Saved to output.jpg
$ ./focus-stack/build/focus-stack --output=output100.jpg --jpgquality=100
.jpg Saved to output100.jpg
$ jhead output
File name : output100.jpg File size : 9089639 bytes File date : 2020:08:08 13:08:07 Resolution : 5196 x 3462 JPEG Quality : 100

File name : output.jpg File size : 3046668 bytes File date : 2020:08:08 13:05:52 Resolution : 5196 x 3462 JPEG Quality : 95

$ `

It stay a warning, but I don't really know how to correct it. Sorry, I'm not a dev, I hope I didn't did some mess :)

Regards, Fabrice. Ps. With a lot of delay, many thank for the last update we discuss (issue 4 Out Of Memory issue).

PetteriAimonen commented 3 years ago

Thanks!

Note that you can also specify --output=image.png to save as lossless png.