Expand user dir ~
Test given value of jpeg quality