1.
to treat or represent sb/sth fairly, especially in a way that shows how good, attractive, etc. they are :
That photo doesn't do you justice.
2.
to deal with sb/sth correctly and completely :
You cannot do justice to such a complex situation in just a few pages.