Target compression size can not be deterministic or can not be fixed.
To me Hoffman compression algorithm works pretty well for me.
To implement the algorithm this link might be useful:
http://www.daniweb.com/code/snippet216267.html[
^]
The target compression size depends on the Algorithm and the Input pattern.