There are several ways to solve your problem, even all of them from a single one. You can use ready-made solutions - by searching Google, you will find several free and / or paid libraries - or create them from scratch.
Here I propose an example for you to work on. It just magnifies / reduces the image without great beauty involved.
var entidade = document.getElementById('imagem');
// Altere o número para a apliação/redução desejada
var fator_lupa = 2;
entidade.onmouseover = function () { this.style.width = (this.clientWidth * fator_lupa) + "px"; };
entidade.onmouseout = function () { this.style.width = (this.clientWidth / fator_lupa) + "px"; };
<img id="imagem" width="200" src="https://www.google.com.br/images/srpr/logo11w.png"/>
HereisaJSFiddlelinkforexampleworkingcodeincasetheSOptpreviewdoesnotwork: JSFiddle
I hope I have helped!