diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-01 23:43:23 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-01 23:43:23 (GMT) |
commit | 6eb0a98efae33390dc6c0aad1aaee81cb6628fb1 (patch) | |
tree | 0a7dbd97bb2be40d8d980263654e10a1ce091067 /model.py | |
parent | d7f3f08170a9acba340073ccd92a8b81c07977e9 (diff) |
show image on transcode!
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@840 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -185,8 +185,8 @@ class Model: os.rename( tmpPath, os.path.join(Instance.tmpPath,recd.mediaFilename)) thumbPath = os.path.join(Instance.tmpPath, recd.thumbFilename) - scale = float((UI.THUMB_WIDTH+0.0)/(pixbuf.get_width()+0.0)) - thumbImg = utils.generateThumbnail(pixbuf, scale, UI.THUMB_WIDTH, UI.THUMB_HEIGHT) + scale = float((UI.dim_THUMB_WIDTH+0.0)/(pixbuf.get_width()+0.0)) + thumbImg = utils.generateThumbnail(pixbuf, scale, UI.dim_THUMB_WIDTH, UI.dim_THUMB_HEIGHT) thumbImg.write_to_png(thumbPath) imagePath = os.path.join(Instance.tmpPath, "audioPicture.png") @@ -248,8 +248,8 @@ class Model: os.rename( tmpPath, os.path.join(Instance.tmpPath,recd.mediaFilename)) thumbPath = os.path.join(Instance.tmpPath, recd.thumbFilename) - scale = float((UI.THUMB_WIDTH+0.0)/(wid+0.0)) - thumbImg = utils.generateThumbnail(pixbuf, scale, UI.THUMB_WIDTH, UI.THUMB_HEIGHT) + scale = float((UI.dim_THUMB_WIDTH+0.0)/(wid+0.0)) + thumbImg = utils.generateThumbnail(pixbuf, scale, UI.dim_THUMB_WIDTH, UI.dim_THUMB_HEIGHT) thumbImg.write_to_png(thumbPath) self.createNewRecordedMd5Sums( recd ) @@ -311,8 +311,8 @@ class Model: pixbuf.save( imgpath, "jpeg" ) thumbpath = os.path.join(Instance.tmpPath, recd.thumbFilename) - scale = float((UI.THUMB_WIDTH+0.0)/(pixbuf.get_width()+0.0)) - thumbImg = utils.generateThumbnail(pixbuf, scale, UI.THUMB_WIDTH, UI.THUMB_HEIGHT) + scale = float((UI.dim_THUMB_WIDTH+0.0)/(pixbuf.get_width()+0.0)) + thumbImg = utils.generateThumbnail(pixbuf, scale, UI.dim_THUMB_WIDTH, UI.dim_THUMB_HEIGHT) thumbImg.write_to_png(thumbpath) gc.collect() #now that we've saved both the image and its pixbuf, we get their md5s |