Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG not working v1.0.1 #151

Open
DanStJohn opened this issue Jan 7, 2025 · 0 comments
Open

SVG not working v1.0.1 #151

DanStJohn opened this issue Jan 7, 2025 · 0 comments

Comments

@DanStJohn
Copy link

DanStJohn commented Jan 7, 2025

Cannot get this to work loading an SVG from assets directory

     **TS file**

     this.image = {
        svg: '/assets/ecg/svg/' + result.svg
     }
     
     **HTML file**

     <!-- img tag will render svg  --> 
     <img [src]="image.svg"/>
              
      <!-- ngx-image-zoom will not render svg -->

      <lib-ngx-image-zoom [thumbImage]="image.svg" [fullImage]="image.svg" [maxZoomRatio]=1  
          [enableScrollZoom]="true" zoomMode=hover [enableLens]=true [lensWidth]=200 
          [lensHeight]=200 [magnification]="2">
      </lib-ngx-image-zoom>

Will work fine with a JPG but I need to render an SVG

@DanStJohn DanStJohn changed the title SVG not working SVG not working v1.0.1 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant