Skip to content

A jQuery plugin for "cropping" images within html elements.

License

Notifications You must be signed in to change notification settings

flinto/fake_crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FakeCrop, by Flinto

A jQuery plugin for “cropping” an image within an HTML element. FakeCrop will scale the image to fit within the element, and center it.

Installation

Download and include the jquery.fake_crop.js file in your project after including jQuery.

<script src="jquery.fake_crop.js"></script>

Basic Usage

Initialize the plugin by calling fake_crop() on the element you’d like to use it on.

<div id="crop_me">
  <img src="foo.jpg">
</div>
$('#crop_me').fakeCrop()

About

A jQuery plugin for "cropping" images within html elements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published