ngHelperCropResize
A simple directive to adjust your images without loosing quality
Install ng-helper-crop-resize
bower install ng-helper-crop-resize --save
Include the angular module
angular.module('appApp', [
'ngHelperCropResize'
]);
Resize & crop your image
<img src="images/avatardemo.jpg" style="width: 150px; height: 150px;" class="autoCropAndResize">
Remarks
The directive is also good for many images which are loaded relativly slow. During the time an image will be loaded and processed the component is an avatar image. Don't forget to add the following thing in your gruntfile:
{
expand: true,
cwd: '.',
src: 'bower_components/ng-helper-crop-resize/assets/*',
dest: '<%= yeoman.dist %>'
}
History
Version 0.0.1
- initial release
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :)