czarpino / angular-fix-image-orientation Goto Github PK
View Code? Open in Web Editor NEWFix image orientation by reading image exif data and applying appropriate CSS transformations.
License: MIT License
Fix image orientation by reading image exif data and applying appropriate CSS transformations.
License: MIT License
I wish to use this in conjuncton with elevate zoom
But this fires and error:
<img style="max-height: 377px;" class="img-responsive"
ez-zoom
data-ng-src="{{'data:' + vm.image.fileContentType + ';base64,' + vm.image.fileData}}"
ez-zoom-config="{'scrollZoom': true,'tint':true, 'tintColour':'#F90', 'tintOpacity':0.5}"
ez-zoom-image="{{'data:' + vm.image.fileContentType + ';base64,' + vm.image.fileData}}"
img-fix-orientation="{{'data:' + vm.image.fileContentType + ';base64,' + vm.image.fileData}}">
Error: [$compile:multidir] Multiple directives [ezZoom, imgFixOrientation] asking for new/isolated scope on: <img style="max-height: 377px;" class="img-responsive" ez-zoom="" data-ng-src="{{'data:' + vm.image.fileContentType + ';base64,' + vm.image.fileData}}" ez-zoom-config="{'scrollZoom': true,'tint':true, 'tintColour':'#F90', 'tintOpacity':0.5}" ez-zoom-image="{{'data:' + vm.image.fileContentType + ';base64,' + vm.image.fileData}}" img-fix-orientation="{{'data:' + vm.image.fileContentType + ';base64,' + vm.image.fileData}}">
http://errors.angularjs.org/1.5.5/$compile/multidir?p0=ezZoom&p1=&p2=imgFixOrientation&p3=&p4=new%2Fisolatedundefinedcope&p5=%3Cimgtyle%3D%22max-height%3A%20377px%3B%22%20class%3Dmg-responsive%22%20ez-zoom%3D%22%22ata-ng-src%3D%22%7B%7B'data%3A'%20%2B%20vm.image.fileContentType%20%2B%20'%3Bbase64%2C'%20%2B%20vm.image.fileData%7D%7D%22%20ez-zoom-config%3D%22%7B'scrollZoom'%3A%20true%2C'tint'%3Atrue%2C%20'tintColour'%3A'%23F90'%2C%20'tintOpacity'%3A0.5%7D%22%20ez-zoom-image%3D%22%7B%7B'data%3A'%20%2B%20vm.image.fileContentType%20%2B%20'%3Bbase64%2C'%20%2B%20vm.image.fileData%7D%7D%22%20img-fix-orientation%3D%22%7B%7B'data%3A'%20%2B%20vm.image.fileContentType%20%2B%20'%3Bbase64%2C'%20%2B%20vm.image.fileData%7D%7D%22%3E
minErr/<@http://localhost:9001/app/bower_components/angular/angular.js:68:12
assertNoDuplicate@http://localhost:9001/app/bower_components/angular/angular.js:9476:15
applyDirectivesToNode@http://localhost:9001/app/bower_components/angular/angular.js:8691:15
compileNodes@http://localhost:9001/app/bower_components/angular/angular.js:8320:15
compileNodes@http://localhost:9001/app/bower_components/angular/angular.js:8332:15
compileNodes@http://localhost:9001/app/bower_components/angular/angular.js:8332:15
compile@http://localhost:9001/app/bower_components/angular/angular.js:8219:15
lazyCompilation@http://localhost:9001/app/bower_components/angular/angular.js:8609:22
boundTranscludeFn@http://localhost:9001/app/bower_components/angular/angular.js:8414:16
controllersBoundTransclude@http://localhost:9001/app/bower_components/angular/angular.js:9143:20
ngIfWatchAction@http://localhost:9001/app/bower_components/angular/angular.js:25533:15
$digest@http://localhost:9001/app/bower_components/angular/angular.js:17073:23
$apply@http://localhost:9001/app/bower_components/angular/angular.js:17337:13
done@http://localhost:9001/app/bower_components/angular/angular.js:11572:36
completeRequest@http://localhost:9001/app/bower_components/angular/angular.js:11778:7
requestLoaded@http://localhost:9001/app/bower_components/angular/angular.js:11711:9
Directive should support the following usage:
<div ng-app="demo">
<img img-fix-orientation="https://raw.githubusercontent.com/recurser/exif-orientation-examples/master/Landscape_6.jpg" ng-src="https://raw.githubusercontent.com/recurser/exif-orientation-examples/master/Landscape_6.jpg">
</div>
I'm using this with my angular 1.4 project and I get this error. I can't run my application while I have either these files installed or have it added via bower.
Hi, how I can avoid error 'Access-Control-Allow-Origin' from imagens without EXIF?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.