# \href is not working only with image

\href{https://google.com}{\includegraphics[scale=0.05]{logo.png}} - not working

How to make it work only with image

With pdflatex/lualatex it should work. With xelatex you need \XeTeXLinkBox:

\documentclass{article}
\usepackage{hyperref}
\usepackage{graphicx}
%

\begin{document}