Show large image by clicking on Normal Image

Show large image by clicking on Normal Image

  

Hello,

I am storing two images (while uploading, two images are created) for single project. One Normal and another Large. While displaying on show page, I am showing Normal Image . 

We want that when user clicks on Normal image, Large image should be displayed.

How should we achieve this? Please advice.

Thanks and Regards,

Suraj Borade

Hi Suraj,


You can load big image in server action on associated with click event and after fetch convert it to base64 and display it using javascript to replace img src by id.


Cheers,

Nick