Image.createThumbnail (rawimage, dir) |
function creates a thumbnail of this image
does nothing if the image uploaded is smaller than 100x100px
|
Sourcecode in Image/objectFunctions.js:
1: function createThumbnail(rawimage, dir) { 2: var thumb = (this.site ? new Image(this.creator) : new LayoutImage(this.creator)); 3: thumb.site = this.site; 4: thumb.layout = this.layout; 5: thumb.filename = this.filename + "_small"; 6: thumb.save(rawimage, dir, THUMBNAILWIDTH); 7: thumb.alttext = this.alttext; 8: thumb.alias = this.alias; 9: thumb.parent = this; 10: this.thumbnail = thumb; 11: return; 12: } |