Giter Site home page Giter Site logo

angular-fix-image-orientation's People

Contributors

czarpino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-fix-image-orientation's Issues

Multiple directives [ezZoom, imgFixOrientation] asking for new/isolated scope

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

Accept direct image URLs for re-orientation

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.