View Full Version : Can we resize converted base64 image into custom size in sencha touch

25 Jul 2012, 11:03 PM
i have converted image into base64 image, this image original size is height:200 and width:150. i need to convert this image size to height:133 and width:100. i gone through sencha io image resize concept. it is not converting and also once i applied sencha io to url it wont display image. can any one tell me how to customize size of converted base64 image in sencha touch2 styles. Here is my code: in this below code height: 133px; width: 100px; assigned, but for this some part of image is coming. original image size is height: 200px; width: 150px;. i need to customize this one as 133px; width: 100px;

.aboutclsT{ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAADICAYAAAAKhRhlAAAAGXRFWHRTb2Z0d2Fy......K5CYII') !important; background-repeat: no-repeat; height: 133px; width: 100px; }SenchaIO image code:

background: url('http://src.sencha.io/100/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAADICAYAAAAKhRhlAAAAGXRFWHRTb2Z0d2Fy......K5CYII') !important; background-repeat: no-repeat; height: 133px; width: 100px; }

26 Jul 2012, 4:14 AM
You need background-size

26 Jul 2012, 4:39 AM
Thank you. helpfull it is working fine