Image quality, composition and content scan

I would like to ask you what libraries I should use in order to build a tool which would check the technical specifications of the image, then it would analyse the composition and would create keywords accordingly to the content displayed.

I know that google Vision would help partly, but It’s not fulfilling the necessary needs stated above. Thanks for the answers and have a nice day!