Slides transition breaks with base64 images
Short description of the problem:
Slide transition breaks while using base64 encoded image in ngSrc.
What behavior are you expecting?
Smooth slide transition.
Steps to reproduce:
- Capture images using camera plugin with
destinationType: 0 - Pass the array of images into the modal with slides
- Use the
imgtag to display the base64 encoded images
2.0.0-beta.6
Run ionic info from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.1.1
Gulp version: CLI version 3.8.11
Gulp local: Local version 3.9.1
Ionic Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.21
Ionic App Lib Version: 2.0.0-beta.11
OS: Windows 7 SP1
Node Version: v4.2.4
Hello! Thanks for opening am issue with us! What exactly breaks in the transition? Is it just laggy?
Yes the transition stops in the middle and the consecutive swipes moves the slide by few pixels.
OK, that's what I thought. So yeah using base64 images can be really heavy on your memory usage and can easily lead to your application slowing down or basically crashing, as it sounds like your app is. Are you using the Cordova camera plugin? If so I would recommend using the FILE_URL to grab your pictures. That will not eat up your memory like base64 images will.
Im gonna go ahead and close this issue as i believe the above should fix it, if not feel free to comment and ill repoen!
Initially I've had problems using FILE_URL because of Access permission but now it has been resolved by adding the tag <allow-navigation href="file://*/*" /> in config.xml. Thank you.
@Jai-Krish Awesome! No problem! Thanks for using Ionic!