# \href is not working only with image

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}