Jquery Image Magnifier For Blogger

Jquery Effects Part 1
This hack will help you to post elegant magnifying effects to the images you post in blogger.
Here is a preview of what this script can actually do.

The method. - This is actually a very simple hack.
The Scripts for this amazing hack was developed by Dynamic Drive
First of all you will have to download two files.
One is the script that powers the magnification [http://dynamicdrive.com/dynamicindex4/jquery.magnifier.js]
and second one the the cursor that should be displayed when you hover the mouse over the image.
Upload the cursor file(2nd file) somewhere and note down its link.I would suggest you to use http://www.hotlinkfiles.com/

Now Open up the first file(the js file) and find this line in that..

cursorcss: 'url(magnify.cur), -moz-zoom-in',
replace magnify.cur with the url of the cursor that you just uploaded now.
Save this js file and upload it. note down the urls of this file.
Now we have to add the script to our blogger template.
To do that Goto Blogger Template- > Edit Html
Find this code
and replace it with the following code[change url_of_jquery_script with the actual url]
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="url_of_jquery_script">
* jQuery Image Magnify- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
Now when you add an image to blogger,use the class magnify..
ie.. use something like
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2dRhyphenhyphenDWJmNszDQiwxPg6DMRHNM1oi94-YW-zeV2rUo59r1QR98huM0B4KJgYyE1a58UOsos5pnlrfP68VbcaHAtS31V7OmbB6WmDJRXNWO2vXnF-Z1rOErrvv55n4yQZ-Dqf2ht_u4v0/s400/aishwarya-rai-politician.jpg" class="magnify" magnifyby="5" style="width: 200px; height: 150px;" />
ie when you upload an image,goto the Edit Html mode and replace the style and class tags of the image with the portion marked in red..and then
The code that i used for this image is
<img class="magnify" magnifyby="3" style="width: 200px; height: 250px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2dRhyphenhyphenDWJmNszDQiwxPg6DMRHNM1oi94-YW-zeV2rUo59r1QR98huM0B4KJgYyE1a58UOsos5pnlrfP68VbcaHAtS31V7OmbB6WmDJRXNWO2vXnF-Z1rOErrvv55n4yQZ-Dqf2ht_u4v0/s400/aishwarya-rai-politician.jpg" alt="" id="BLOGGER_PHOTO_ID_5361650096596248578" border="0" />
Changing s400 to s800 will get you a bigger image.. :)


  1. Cool. Thanks for the code.
    I know there's another way of maximizing photos without clicking on it. I hope you can feature that one next time. :)

  2. That's pretty cool :) I'm on a Mac, and while it DOES work in Safari, there's no indication to the user that it does. In Firefox it turns the cursor into a little magnifying glass, but the cursor remains the same in Safari. Just an FYI in case there's an easy fix :)

  3. Unfortunately Unable files to download

  4. @Amanda will let you know if i find a fix..
    @Daily Phones check again.. :) its fixed..

  5. @Amanda i think its fixed by now.. I have updated the post.. and tested it in IE,Chrome and Firefox.. the cursor is fine now..i don't have Safari and Opera.. So didn't test on them.. But they should work there too..

  6. Yep! Fixed in Safari now! I don't have Opera, so can't test that for you, but otherwise looks great!

  7. @Amanda thanks a lot for the concern..:)

  8. for me 'script that powers the magnification' link still broken

  9. @jajQo updated it yet again.. copy the link and download it..

  10. can you give us more complete step by step guideline.
    The last two description make us a little confuse


  11. when you upload an image to blogger,you will get an html code which looks like
    <a href="a url" .....><img src="the image link" ...../></a>
    you have to change that to
    <img src="the image link" class="magnify"/>

  12. Hello Aneesh,

    Sorry to bother you again. As i wanted to have download links for images, i had to opt out of light box image trick (though i personally liked it). I tried this trick, but it does not seem to work well. When i click on the image, the whole page of my blog is cluttered up with the image. Then after it is redirected to another page of image. There seems something to be wrong :( Please help me.

    Is there any other way for creating photo albums on blogger platform. Sometimes i need to post about 50 pictures at one go.

    Thanks in advance.

  13. @Ms Hetal Patil lightbox shows the images in its full size.. So if you use it make sure that you crop big pictures into something smaller(which will fit into the browser window..)

    i don't know of any other good gallery plugin for now.. will let you know if i find any..:)

  14. @Ms Hetal Patil sorry i thought you were talking of lightbox.. :)

    actually the light box code can be modified to include a download link..feel free to contact me if you need help with that..

  15. Hello Aneesh,

    Sorry to confuse you.

    Let me clarify. I did not find download links in light box image, so i tried this magnifier trip. As i said i provide free downloadable wallpapers on blog.

    I would like to have modified code for light box image with download links. I really really liked it a lot and it worked fine too without much trouble :)

    Thanks for lending your helping hand towards me.

  16. @Ms Hetal Patil
    i will try to work on it when i am free and will surely let you know..

    btw why don't you use a custom domain??

  17. @Ramarao
    sorry i wasn't able to figure it out..It might probably be conflicting with some other javascripts that you are using!! Try to figure out what change made it to not work!! :)

  18. @@Ramarao By the way your template looks so messed up!! :)

    if u need some help with this you can contact me at the forums.. :)

  19. I found this script on dynamic drive then found your blog. I finally got the script to work on both my web site and on the side bar of my blog. But I cannot seem to figure out why I cannot get the zoom curser to show up in Safari like you did and on IE. It shows up on my firefox only. Can you give me an idea what might be wrong? Or what part I am missing to get the curser to show the zoom image.? Thank you

  20. Hello, I have added this code to by blogspot blog, and it works very well. At this moment I have a dilemma. You say that the image will zoom to its original size when clicked (as a response to a question of "clutter" above), but that does not seem to be the case. Instead, the image is consistently zooming to larger than I desire. This high level of zoom would be okay if I could get good quality, but a higher res file would create an even larger photo when zoomed if I understand correctly?

    I have tested with various formats of the same file, but they all zoom to the same size. I tried changing this by altering the "magnifyby" variable, but that did not seem to make a difference. Changing s400 to s800 did not give me a bigger image as you state above, but a higher resolution image at the same size.

    Large zooms would be okay if I had optimum quality. Ideally I would like to be able to control the amount of magnification no matter what the file size/resolution. Is this possible? From my playing with the code it seems that the original javascript file it is accessing perhaps controls the zoom to some extent?

    Hopefully I have conveyed my concerns in an efficient manner. Please respond!

  21. yes it will zoom to sizes greater than the actual image size, you might probably want to use lytebox instead of this one

    See the discussion at the forums http://forums.bloggerplugins.org/topic/lightbox-plugin

  22. Now I am having troubles with Lytebox. Sorry I have posted these new issues to this thread, but I for some reason cannot login. I believe I have successfully added the code to my html code for the Minima template, but am finding troubles in the implementation of the code in individual posts. I want to display an image as it would usually be displayed if using the traditional uploader, but would come up in the fancy Lytebox window when clicked. Any suggestions?

  23. @Nathan Destro,
    you can recover the forum password from here

    and lytebox is intended to work on click..

    Did you add the necessary javascript and css?

  24. Hello!
    This is a great script and I also have put it on my blog!
    I've observed today that this script is not working anymore, and also on your site!
    Do you have any idea about this?

  25. @VasiaUVI ,
    the script doesnt have any probs.. its not working here because i changed my template recently and i am little lazy to make the changes to the template :)

  26. I understand, but I really don't know why is not working anymore on my site, although it worked! :(

  27. I fixed the cursor problem atleast works for me :)
    My page is like index.php and a folder "js" within the java script and the cursor . So before the fix the url cursor path was just "magnify.cur" after is "http://mydomain/js/magnify.cur" .I just added the full cursor path. Tested with IE 8 , Firefox 3.5 , Chrome 3.0 . Cheers ..

  28. What is the use of magnifier if only I can magnify the image but not the viewers of my blog?

  29. really beautiful!! the girl i mean :P

  30. @topjer: She is famous Indian actress: Aishwarya Rai. Here are more pictures for you: http://www.google.com/images?hl=en&q=Aishwarya+Rai&um=1&ie=UTF-8&source=univ&ei=jXnpTL65KpDevQOCq4nDCA&sa=X&oi=image_result_group&ct=title&resnum=6&ved=0CFsQsAQwBQ&biw=1280&bih=604

    IT WORKS,, COME SEE THE MAGNIFY WIDGET I APPLIED @ http://resensinema.blogspot.com/ for the latest movie review, trailer & showbiz info updates!

  32. I gonna use this image zooming concept in my semester Website project. Thanks for sharing.

  33. It's working fine on my other blogger templates, but not in my current templates which has some js script. I'm using blogger template which i modified the main into tabbed version (with Abu Farhan script), adding some rainbow.js, jquery/1.3.2/jquery.min.js, stickytooltip.js, FancyZoom.js,FancyZoomHTML.js, jquery/1.4.4/jquery.min.js, stickynote.js, and some sticky note script. Already tried by removing FancyZoom but still not working.