thumpy 0.0.1 : Python Package Index
february 2012 by jemerick
A Python web server that uses PIL to dynamically scale, crop, transform and serve images from S3 or the local filesystem
python
image
server
thumbnail
crop
february 2012 by jemerick
Thumbnails work around. - BlackBerry Support Community Forums
february 2010 by jemerick
byte[] tmpB = new byte[4];
tmpB[0] = search[lastbyte+20];
tmpB[1] = search[lastbyte+19];
tmpB[2] = search[lastbyte+18];
tmpB[3] = search[lastbyte+17];
long readsize = 0;
int t = 0;
//convert and retrieve the size
for (int shiftBy=0; shiftBy<32; shiftBy+=8) {
readsize |= (long)(tmpB[t++] & 0xff) <<shiftBy;
}
tmpB = null;
tmpB = new byte[(int)readsize];
t = 0;
//now we read from the start of the image untill the end of
//the image
for (int y = lastbyte+21; y < (int)readsize+lastbyte+21; y++) {
tmpB[t++] = search[y];
}
//and like that we have our bitmap
//now all that is left to do is to convert it using
//Bitmap.createBitmapFromBytes(tmpB, x, y, z);
return tmpB;
blackberry
thumbnails
api
sdk
thumbnail
bbthumbs.dat
tmpB[0] = search[lastbyte+20];
tmpB[1] = search[lastbyte+19];
tmpB[2] = search[lastbyte+18];
tmpB[3] = search[lastbyte+17];
long readsize = 0;
int t = 0;
//convert and retrieve the size
for (int shiftBy=0; shiftBy<32; shiftBy+=8) {
readsize |= (long)(tmpB[t++] & 0xff) <<shiftBy;
}
tmpB = null;
tmpB = new byte[(int)readsize];
t = 0;
//now we read from the start of the image untill the end of
//the image
for (int y = lastbyte+21; y < (int)readsize+lastbyte+21; y++) {
tmpB[t++] = search[y];
}
//and like that we have our bitmap
//now all that is left to do is to convert it using
//Bitmap.createBitmapFromBytes(tmpB, x, y, z);
return tmpB;
february 2010 by jemerick
Copy this bookmark: