Hand your visitors a magnifying glass to scrutinize your artwork.
Glass adds a magnifying glass (loupe/hand glass) for images to your WordPress site. It needs no Flash and no CSS3 radius. It works on the iPad and on many other platforms. (Thanks for all the positive feedback.)
This started out as a challenge to code a round magnifying glass that would work without Flash and without the CSS3 radius property. If you are interested in coding read the blog entry. Also, a user-selectable color for the glass's rim was claimed to be impossible without Flash. Read the blog post on color stacking if you are tech inclined. Otherwise just enjoy the result.
When the cursor hovers over an image a round frame is displayed on top of it, the frame shows a (round) part of a hires image, creating the illusion of a magnifying glass. Currently Glass only works on .jpg and .png images. Click behavior of the image is unaltered, however, double clicking is "hijacked" to display the GLP license and displaying the homepage of Glass.
Glass is activated for images directly linked to an image, where the link target is assumed to be a hires version. Glass also is activated for an image with a size suffix (e.g., -100x100.jpg) linked to a page. The URL of the hires version is guessed by removing the size. Guessing the hires URL allows Glass to work on galleries of thumbnails. Since galleries can contain many thumbnails, Glass can slow down page loading. Therefore the URL guessing can be altered by specifying a lower resolution, e.g., 800x600. This will make Glass look for a smaller version. The guessing can also be switched off.
If linking an image is needed but Glass should not be activated, wrap the image in span begin and end tags.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Requires: 3.0.0 or higher
Compatible up to: 3.5.2
Last Updated: 2012-12-23
0 of 4 support threads in the last two months have been resolved.
Got something to say? Need help?