cialis online pharmacy generic xenical cheap cialis online cialis generic viagra online in canada buy cheap levitra online cialis without a perscription order viagra uk no prescription flagyl cheap generic levitra buying viagra in the uk cheap viagra approved cialis deltasone online buy viagra online without prescription non prescription cialis buy orlistat uk buy cialis in india prednisone 60 mg female viagra online buy viagra without prescription celebrex prescriptions buy cialis canada best prices viagra alternative to prednisone cheapest generic levitra levitra 5mg cheap viagra cialis on line buy xenical without prescription online accutane canadian health care prednisone no prescreption viagra online generic female viagra europe buy cialis low price cheap india viagra
jquery-wordpress

Polyclip.js: Clip JPEG Images Into Polygons

Thanks to polyClip.js, you finally don’t have to restrict yourself to using PNG files or a graphics editor whenever you want to use an image of an object without its background. Created by ZoltanDulac, polyclip.js a jQuery plugin or JavaScript library that allows you to crop or clip any image in a non-rectangular way with HTML5 Canvas’ imagemap coordinates.

Why use JPEG with polyclip.js instead of PNG? Because PNG images can’t be as small as JPEG images when you’re dealing with photographic images, and you know how an image’s file size can affect a page’s loading time. What the script does is cut points on the image using x and y values provided by the user. If you know how to create an image map then using polyclip.js should be easy for you to use.

This plugin’s practical value can be subject for debate when you’re dealing with a lot of images but if it’s only for a handful of images, it can be a huge byte-saver.

The polyclip.js is supported by most browsers, including IE7 and 8 but it’s going to require the Excanvas JavaScript library which polyfills canvas using VML for it to function properly. It weighs in at only 2kb but for IE7 and 8, there’s going to be an additional 11kb.

You can download the latest version of polyclip.js over at GitHub. To know more about this plugin/library, you can read about it here.

Related Posts

zifer-child-wordpress

Zifer Child WordPress theme

Quest WordPress Theme

Colormag Responsive WordPress Theme

Responsive Brix WordPress Theme