I wish to use ngf-thumbnail directive of ng-file-upload angular plugin to generate previews of images once a user selects them from their computer. However, the size of the image is restricted to the size of the element that contains the thumbnail or the size needs to be specified when the directive is created.
Is it possible to generate preview of images using their original size within the framework of the plugin. I am wondering if there is another option than reading the image using FileReader/onload event (Getting Image Dimensions using Javascript File API)
Please this for code sample: http://jsfiddle.net/danialfarid/maqbzv15/
<img ng-show="myForm.file.$valid" ngf-thumbnail="!picFile.$error && picFile" class="thumb"> <button ng-click="picFile = null" ng-show="picFile">Remove</button>
This is a JS Fiddle on how to use this plugin and you can try to reproduce the problem by uploading a image to it. Changing the height and width of the 'thumb' class will not work.