javascript - Saving ng-repeat items as images -
i have ng-repeat in html creates around 750 divs (i producing labels products), have designed them how them , happy this, quite big print preview doesn't design.
i want know if possible in angular iterate through each of ng-repeat items , save them png?
below ng-repeat :
<div class="col-lg-4" ng-repeat="p in productcodes"> <div class="contact-box" style="padding:0px !important;height:370px;width:650px;"> <span ui-sref="profile"> <div class="col-lg-3" style="padding:0px"> <img alt="image" class="img m-t-xs img-responsive rotateimage" style="max-width:1000% !important;width:200%" ng-src=""> </div> <div class="col-lg-2" style="padding:0px"> <div > <h3 style="margin-top:45px;">code:</h3> <h3>colour:</h3> <h3>item:</h3> <h3>en cert:</h3> <h3>size gb:</h3> <h3>size se:</h3> <h3>size eu:</h3> <h3>length:</h3> </div> </div> <div class="col-lg-3" style="padding:0px"> <h3 style="margin-top:45px;"><strong>{{p.pcode}}</strong></h3> <strong> <h3>{{p.colour}}</h3> </strong> <h3> {{p.shortdescription}}</h4> <h3>n/a</h3> <strong> <h3>{{p.size}}</h3> </strong> <h3>c62</h3> <h3>3xl+</h3> <strong> <h3>{{getsize(p.sizecode)}}</h3> </strong> </div> <div class="col-lg-4 col-md-12 col-sm-12" style="padding:0px"> <img alt="image" class="img-circle m-t-xs img-responsive" style="margin-top:60px;width:200%;" src=".{{p.localimg}}"> </div> <div class="clearfix"></div> </span> </div> </div>
i want know if possible in angular iterate through each of ng-repeat items , save them png?
short answer
no
long answer
save png
where? can store them on server side or comp. not related angular. example, if use cloudinary image storage, able transform image resolutions preview changing url:
further, not practice show 750 images
@ once, gonna kill web page. keep in mind, after 2k of watchers web view performance slows down.
i believe if have fixed height of ng-repeat
item, use infinite scrolling. example take on google material virtual repeat approach.
other solution
if image preview small, can convert image base64 , save calling 750 http requests
Comments
Post a Comment