A simple directive to adjust your images without loosing quality
bower install ng-helper-crop-resize --save
angular.module('appApp', [
'ngHelperCropResize'
]);
<img src="images/avatardemo.jpg" style="width: 150px; height: 150px;" class="autoCropAndResize">
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 %>'
}
- initial release
- 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 :)