From 9d126924e70d7d1c0e6bc5392e4b7177874c02c0 Mon Sep 17 00:00:00 2001 From: Kilian Valkhof Date: Tue, 2 Feb 2010 14:57:31 +0100 Subject: [PATCH] dont show gifs in dialog --- todo | 20 ++++++++++++-------- trimage.py | 8 ++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/todo b/todo index e458ba6..69a7c06 100644 --- a/todo +++ b/todo @@ -20,14 +20,12 @@ trimage: simple gui for: optipng for png and gif, jpegoptim for jpeg. both are available in ubuntu as dependencies (our primary platform) ^ no gif. optipng optimized gif by converting to png + ========================================== todo app wise -- implement something for gifs (or not) - implement drag and drop on table - clean up code, make it PEP-8 -- figure out what to do with: - - recompress and optipng ( −o7? ) not really doing anything - - lockup when opening files (i'd like it to not lock up the file dialog) +- implement threading (and include advpng then) todo else - figure out dependencies for a .deb/how to make a .deb @@ -35,10 +33,16 @@ todo else - figure out how to make mac and win versions current dependencies: -python -python-qt4 +python 2.6 +python-qt4 4.4 hurry.filesize (bundled) -optipng -jpgegoptim +optipng 0.6.2.1 +jpgegoptim 1.2.2 + +=========================================== +1.5: +later versions: +pnypng api? http://www.gracepointafterfive.com/punypng/api +imagemagick/graphicmagick? diff --git a/trimage.py b/trimage.py index a2399a8..a0da5a9 100644 --- a/trimage.py +++ b/trimage.py @@ -33,7 +33,7 @@ class StartQT4(QMainWindow): images = fd.getOpenFileNames(self, "Select one or more image files to compress", "", # directory - "Image files (*.png *.gif *.jpg)") + "Image files (*.png *.jpg)") for image in images: self.compress_file(image) @@ -65,10 +65,6 @@ class StartQT4(QMainWindow): runstr = 'optipng -force -o7 "' + str(filename) + '"' runfile = system(runstr) - else: - print "run something for gif" - runfile = system('ls') - if runfile == 0: newfile = QFile(filename) newfilesize = newfile.size() @@ -81,7 +77,7 @@ class StartQT4(QMainWindow): self.update_table() else: - print "uh. not good" #implement, something went wrong + print "uh. not good" #throw dialogbox error or something? def update_table(self):