@ -21,6 +21,7 @@ var Canvas = require('../build/default/canvas')
Image.prototype.inspect = function(){
return '[Image'
+ (this.complete ? ':' + this.width + 'x' + this.height : '')
+ (this.src ? ' ' + this.src : '')
+ (this.complete ? ' complete' : '')
+ ']';
@ -315,7 +315,7 @@ Image::loadSurface() {
, width
, height
, width * 4);
cairo_surface_write_to_png(_surface, "test2.png");
fclose(stream);
jpeg_finish_decompress(&info);
jpeg_destroy_decompress(&info);