No description, website, or topics provided.
Pull request Compare This branch is 2 commits behind aino:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Provides two helpers, a proper imageLoad method and a fully featured imageScale method.


  • polyfills naturalWidth/naturalHeight
  • works for images that are already loaded
  • provides fallbacks for browser bugs (f.ex adblock in chrome)


$('img').imageLoad(function(e) {
    // loaded


  • gives you 6 different cropping options: true, false, width, height, landscape, portrait
  • lets you upscale images
  • lets you position the image using standard CSS positioning
  • takes percent or pixels for responsive layouts
  • creates a wrapper that hides overflowing parts if you crop the image
  • never stretches an image unproportionally


    width: 200,
    height: 200,
    crop: true,
    complete: function() {
        // loaded and scaled


MIT license. Made by