What is actually an insult wrapped in a compliment?

Some of my favourites:

Whenever I talk to you I walk away feeling smarter.

You look so beautiful in this photo I almost didn’t recognise you.

I admire how you can wear an outfit like that with such confidence.