blueimp / JavaScript-Load-Image

Load images provided as File or Blob objects or via URL. Retrieve an optionally scaled, cropped or rotated HTML img or canvas element. Use methods to parse image metadata to extract IPTC and Exif tags as well as embedded thumbnail images, to overwrite the Exif Orientation value and to restore the complete image header after resizing.
https://blueimp.github.io/JavaScript-Load-Image/
MIT License
4.45k stars 924 forks source link

Adding bower file. Required to get it work with gulp and uglifyer #79

Closed fkubis closed 8 years ago

fkubis commented 8 years ago

Without an bower file, bower detects the index.js in the root as main file.

blueimp commented 8 years ago

Sorry but I will not add back a bower file, since bower allows installing from Github repositories. Everything else is a question of build tool configuration.

fkubis commented 8 years ago

Why not? Without nobody could add this repo with automatic deployment. Without define the main-files Bower detect the wrong files. Thats stupid.

blueimp commented 8 years ago

There is a main property defined in the package.json which you could use with NPM, which you already have installed since bower is itself installed via NPM.

This library here can be used in automatic deployments without the need for a bower file, so the only thing which is stupid is unfortunately your rude remark. Even if you insist on using bower, you can still use it with automatic deployments since all you need to do is instruct your build tool to copy the files you actually require. This is even more true since the library has a couple of modular extensions that not everybody will need, e.g. the EXIF names mapping.