Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorerikb <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)
commit6eb0a98efae33390dc6c0aad1aaee81cb6628fb1 (patch)
tree0a7dbd97bb2be40d8d980263654e10a1ce091067 /model.py
parentd7f3f08170a9acba340073ccd92a8b81c07977e9 (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.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/model.py b/model.py
index 0d69ab4..fc90d4f 100644
--- a/model.py
+++ b/model.py
@@ -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