Permalink
Browse files

massive overhaul of directory to make it work nicer with .deb generation

  • Loading branch information...
1 parent 41672b8 commit 8dcec263ffc0fe8d84b11e970156d992e12a120e @Kilian committed Mar 23, 2010
View
0 MIT-LICENSE → COPYING
File renamed without changes.
View
9 MANIFEST.in
@@ -1,7 +1,4 @@
-include trimage.py
-include ui.py
-include trimage.desktop
-include MIT-LICENSE
-recursive-include pixmaps *
-recursive-include hurry *
+include COPYING MANIFEST MANIFEST.in README trimage
+recursive-include desktop *.svg *.desktop
+recursive-include src/ *.py *.png
View
15 README
@@ -0,0 +1,15 @@
+Trimage image compressor
+A cross-platform tool for optimizing PNG and JPG files.
+
+Trimage is a cross-platform GUI and command-line interface to optimize image
+files via "optipng":http://optipng.sourceforge.net/,
+"advpng":http://advancemame.sourceforge.net/comp-readme.html and
+"jpegoptim":http://www.kokkonen.net/tjko/projects.html, depending on the
+filetype (currently, PNG and JPG files are supported). It was inspired by
+"imageoptim":http://imageoptim.pornel.net/. All image files are losslessy
+compressed on the highest available compression levels. Trimage gives you
+various input functions to fit your own workflow: A regular file dialog,
+dragging and dropping and various command line options.
+
+Visit "Trimage.org":http://trimage.org for more information
+
View
7 README.textile
@@ -1,7 +0,0 @@
-h2. Trimage image compressor
-A cross-platform tool for optimizing PNG and JPG files.
-
-Trimage is a cross-platform GUI and command-line interface to optimize image files via "optipng":http://optipng.sourceforge.net/, "advpng":http://advancemame.sourceforge.net/comp-readme.html and "jpegoptim":http://www.kokkonen.net/tjko/projects.html, depending on the filetype (currently, PNG and JPG files are supported). It was inspired by "imageoptim":http://imageoptim.pornel.net/. All image files are losslessy compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.
-
-Visit "Trimage.org":http://trimage.org for more information
-
View
6 debian/changelog
@@ -0,0 +1,6 @@
+trimage (1.0.0b-0ubuntu1) jaunty; urgency=low
+
+ * Trimage image compressor
+
+ -- Kilian Valkhof <help@trimage.org> Tue, 23 Mar 2010 20:18:17 +0100
+
View
1 debian/compat
@@ -0,0 +1 @@
+7
View
16 debian/control
@@ -0,0 +1,16 @@
+Source: trimage
+Section: graphics
+Priority: optional
+Maintainer: Kilian Valkhof <kilian@kilianvalkhof.com>
+Build-Depends: cdbs (>=0.4.49), debhelper (>= 5), python-central (>=0.5.6), python
+XS-Python-Version: >=2.6
+Standards-Version: 3.8.0
+Homepage: https://launchpad.net/pyAppTemplate
+
+Package: trimage
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, python-qt4 (>= 4.4), optipng (>= 0.6.2.1), advancecomp (>=1.15), jpegoptim (>=1.2.2)
+XB-Python-Version: ${python:Versions}
+Description: A cross-platform tool for optimizing PNG and JPG files.
+ Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and jpegoptim, depending on the filetype (currently, PNG and JPG files are supported). It was inspired by imageoptim. All image files are losslessy compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.
+
View
41 debian/copyright
@@ -0,0 +1,41 @@
+This package was debianized by:
+
+ Kilian Valkhof <help@trimage.org> on Tue, 23 Mar 2010 20:18:17 +0100
+
+Upstream Author(s):
+
+ Kilian Valkhof
+
+Copyright:
+
+ Copyright (C) 2010 Kilian Valkhof, Paul Chaplin
+
+License:
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the "Software"), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+
+The Debian packaging is:
+
+ Copyright (C) 2010 Kilian Valkhof, Paul Chaplin
+
+and is licensed under the MIT license, see above.
+
View
1 debian/docs
@@ -0,0 +1 @@
+README
View
1 debian/pycompat
@@ -0,0 +1 @@
+2
View
8 debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+DEB_PYTHON_SYSTEM=pycentral
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+# Add here any variable or target overrides you need.
View
3 trimage.desktop → desktop/trimage.desktop
@@ -1,9 +1,8 @@
-
[Desktop Entry]
Name=Trimage image compressor
Comment=A cross-platform tool for optimizing PNG and JPG files.
Terminal=false
-Icon=/usr/share/trimage/pixmaps/trimage-icon.png
+Icon=trimage
Type=Application
Exec=trimage
Categories=GNOME;GTK;Graphics;
View
22 resources/logo-trimage.svg → desktop/trimage.svg
@@ -9,13 +9,14 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="744.09448819"
- height="1052.3622047"
+ width="524.81012"
+ height="541.92767"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.46"
sodipodi:docname="logo-trimage.svg"
- inkscape:output_extension="org.inkscape.output.svg.inkscape">
+ inkscape:output_extension="org.inkscape.output.svg.inkscape"
+ version="1.0">
<defs
id="defs4">
<linearGradient
@@ -113,7 +114,7 @@
inkscape:pageshadow="2"
inkscape:zoom="0.98994949"
inkscape:cx="299.62219"
- inkscape:cy="722.03051"
+ inkscape:cy="479.5939"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
@@ -135,10 +136,11 @@
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
- id="layer1">
+ id="layer1"
+ transform="translate(-72.611421,-111.20599)">
<path
sodipodi:type="star"
- style="fill:url(#linearGradient3183);fill-opacity:1;stroke:none;stroke-width:2.20967632;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ style="fill:url(#linearGradient3183);fill-opacity:1;stroke:none;stroke-width:2.20967627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path3155"
sodipodi:sides="3"
sodipodi:cx="11.428571"
@@ -157,7 +159,7 @@
inkscape:export-ydpi="11.166932" />
<path
sodipodi:type="star"
- style="fill:#ffffff;fill-opacity:0.45833333999999998;stroke:none;stroke-width:3.01696083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ style="fill:#ffffff;fill-opacity:0.45833333;stroke:none;stroke-width:3.01696086;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path3157"
sodipodi:sides="3"
sodipodi:cx="11.428571"
@@ -176,7 +178,7 @@
inkscape:export-ydpi="11.166932" />
<path
sodipodi:type="star"
- style="fill:#ffffff;fill-opacity:0.62500000000000000;stroke:none;stroke-width:4.66924454;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ style="fill:#ffffff;fill-opacity:0.625;stroke:none;stroke-width:4.66924477;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path3159"
sodipodi:sides="3"
sodipodi:cx="11.428571"
@@ -207,14 +209,14 @@
sodipodi:cx="11.428571"
sodipodi:sides="3"
id="path3185"
- style="fill:url(#radialGradient3187);fill-opacity:1;stroke:none;stroke-width:2.20967632;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ style="fill:url(#radialGradient3187);fill-opacity:1;stroke:none;stroke-width:2.20967627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
sodipodi:type="star"
inkscape:export-filename="/home/kilian/workspace/trimage/trimage-icon.png"
inkscape:export-xdpi="11.166932"
inkscape:export-ydpi="11.166932" />
<path
sodipodi:type="star"
- style="fill:url(#radialGradient3199);fill-opacity:1;stroke:#454545;stroke-width:8.28628619;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ style="fill:url(#radialGradient3199);fill-opacity:1;stroke:#454545;stroke-width:8.28628635;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path3197"
sodipodi:sides="3"
sodipodi:cx="11.428571"
View
3 resources/todo
@@ -10,9 +10,9 @@ todo app wise
- make the current verbose be "normal", and make -verbose print the commandline
app prints as well
- verify that a *recompressed* file is smaller than the compressed one
+- find a way to specify the version once for everywhere
todo else
-- figure out dependencies for a .deb/how to make a .deb <- via launchpad
- figure out how to make mac and win versions (someone else :) <- via gui2exe
todo later
@@ -36,3 +36,4 @@ later versions:
optimised once. Recompressing maximally compresses 90. Recompressing
again would currently try to recompress all 100, when only 10 would be
worthy of trying to compress further.
+
View
237 resources/trimage.svg
@@ -0,0 +1,237 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="524.81012"
+ height="541.92767"
+ id="svg2"
+ sodipodi:version="0.32"
+ inkscape:version="0.46"
+ sodipodi:docname="logo-trimage.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape"
+ version="1.0">
+ <defs
+ id="defs4">
+ <linearGradient
+ id="linearGradient3207">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:0.51401869"
+ offset="0"
+ id="stop3209" />
+ <stop
+ style="stop-color:#76b9fb;stop-opacity:0;"
+ offset="1"
+ id="stop3211" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient3189">
+ <stop
+ id="stop3191"
+ offset="0"
+ style="stop-color:#ffffff;stop-opacity:1;" />
+ <stop
+ id="stop3193"
+ offset="1"
+ style="stop-color:#76b9fb;stop-opacity:0;" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient3177">
+ <stop
+ style="stop-color:#2166ce;stop-opacity:1;"
+ offset="0"
+ id="stop3179" />
+ <stop
+ style="stop-color:#76b9fb;stop-opacity:1;"
+ offset="1"
+ id="stop3181" />
+ </linearGradient>
+ <inkscape:perspective
+ sodipodi:type="inkscape:persp3d"
+ inkscape:vp_x="0 : 526.18109 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+ id="perspective10" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3177"
+ id="linearGradient3183"
+ x1="-113.18141"
+ y1="94.068687"
+ x2="87.293686"
+ y2="196.29851"
+ gradientUnits="userSpaceOnUse" />
+ <radialGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3189"
+ id="radialGradient3187"
+ cx="-65.175232"
+ cy="257.47021"
+ fx="-65.175232"
+ fy="257.47021"
+ r="147.35561"
+ gradientTransform="matrix(0.9973701,7.2477038e-2,-8.1815483e-2,1.1258782,20.893644,-31.286202)"
+ gradientUnits="userSpaceOnUse" />
+ <radialGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3189"
+ id="radialGradient3199"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.5134757,2.4437577e-2,-2.7551034e-2,0.5788946,65.578572,65.206227)"
+ cx="111.03341"
+ cy="166.65665"
+ fx="111.03341"
+ fy="166.65665"
+ r="147.35561" />
+ <radialGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3207"
+ id="radialGradient3205"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.5552136,-0.6613875,0.7169659,0.6018699,37.072783,80.283257)"
+ cx="56.787258"
+ cy="73.974876"
+ fx="56.787258"
+ fy="73.974876"
+ r="147.35561" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ gridtolerance="10000"
+ guidetolerance="10"
+ objecttolerance="10"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.98994949"
+ inkscape:cx="299.62219"
+ inkscape:cy="479.5939"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1920"
+ inkscape:window-height="1180"
+ inkscape:window-x="0"
+ inkscape:window-y="0" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(-72.611421,-111.20599)">
+ <path
+ sodipodi:type="star"
+ style="fill:url(#linearGradient3183);fill-opacity:1;stroke:none;stroke-width:2.20967627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path3155"
+ sodipodi:sides="3"
+ sodipodi:cx="11.428571"
+ sodipodi:cy="175.21933"
+ sodipodi:r1="168.57143"
+ sodipodi:r2="84.285713"
+ sodipodi:arg1="1.5707963"
+ sodipodi:arg2="2.6179939"
+ inkscape:flatsided="true"
+ inkscape:rounded="0.11"
+ inkscape:randomized="0"
+ d="M 11.428575,343.79076 C -20.688595,343.79076 -150.61715,118.74791 -134.55857,90.933621 C -118.49998,63.119335 141.35712,63.119328 157.41571,90.933613 C 173.47429,118.7479 43.545746,343.79076 11.428575,343.79076 z"
+ transform="matrix(1.385337,-1.1652199,1.1652199,1.385337,160.77379,177.08667)"
+ inkscape:export-filename="/home/kilian/workspace/trimage/trimage-icon.png"
+ inkscape:export-xdpi="11.166932"
+ inkscape:export-ydpi="11.166932" />
+ <path
+ sodipodi:type="star"
+ style="fill:#ffffff;fill-opacity:0.45833333;stroke:none;stroke-width:3.01696086;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path3157"
+ sodipodi:sides="3"
+ sodipodi:cx="11.428571"
+ sodipodi:cy="175.21933"
+ sodipodi:r1="168.57143"
+ sodipodi:r2="84.285713"
+ sodipodi:arg1="1.5707963"
+ sodipodi:arg2="2.6179939"
+ inkscape:flatsided="true"
+ inkscape:rounded="0.11"
+ inkscape:randomized="0"
+ d="M 11.428575,343.79076 C -20.688595,343.79076 -150.61715,118.74791 -134.55857,90.933621 C -118.49998,63.119335 141.35712,63.119328 157.41571,90.933613 C 173.47429,118.7479 43.545746,343.79076 11.428575,343.79076 z"
+ transform="matrix(1.0146457,-0.853428,0.853428,1.0146457,272.20143,300.96357)"
+ inkscape:export-filename="/home/kilian/workspace/trimage/trimage-icon.png"
+ inkscape:export-xdpi="11.166932"
+ inkscape:export-ydpi="11.166932" />
+ <path
+ sodipodi:type="star"
+ style="fill:#ffffff;fill-opacity:0.625;stroke:none;stroke-width:4.66924477;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path3159"
+ sodipodi:sides="3"
+ sodipodi:cx="11.428571"
+ sodipodi:cy="175.21933"
+ sodipodi:r1="168.57143"
+ sodipodi:r2="84.285713"
+ sodipodi:arg1="1.5707963"
+ sodipodi:arg2="2.6179939"
+ inkscape:flatsided="true"
+ inkscape:rounded="0.11"
+ inkscape:randomized="0"
+ d="M 11.428575,343.79076 C -20.688595,343.79076 -150.61715,118.74791 -134.55857,90.933621 C -118.49998,63.119335 141.35712,63.119328 157.41571,90.933613 C 173.47429,118.7479 43.545746,343.79076 11.428575,343.79076 z"
+ transform="matrix(0.6555978,-0.5514294,0.5514294,0.6555978,380.12917,420.94953)"
+ inkscape:export-filename="/home/kilian/workspace/trimage/trimage-icon.png"
+ inkscape:export-xdpi="11.166932"
+ inkscape:export-ydpi="11.166932" />
+ <path
+ transform="matrix(1.385337,-1.1652199,1.1652199,1.385337,160.77379,177.08667)"
+ d="M 11.428575,343.79076 C -20.688595,343.79076 -150.61715,118.74791 -134.55857,90.933621 C -118.49998,63.119335 141.35712,63.119328 157.41571,90.933613 C 173.47429,118.7479 43.545746,343.79076 11.428575,343.79076 z"
+ inkscape:randomized="0"
+ inkscape:rounded="0.11"
+ inkscape:flatsided="true"
+ sodipodi:arg2="2.6179939"
+ sodipodi:arg1="1.5707963"
+ sodipodi:r2="84.285713"
+ sodipodi:r1="168.57143"
+ sodipodi:cy="175.21933"
+ sodipodi:cx="11.428571"
+ sodipodi:sides="3"
+ id="path3185"
+ style="fill:url(#radialGradient3187);fill-opacity:1;stroke:none;stroke-width:2.20967627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ sodipodi:type="star"
+ inkscape:export-filename="/home/kilian/workspace/trimage/trimage-icon.png"
+ inkscape:export-xdpi="11.166932"
+ inkscape:export-ydpi="11.166932" />
+ <path
+ sodipodi:type="star"
+ style="fill:url(#radialGradient3199);fill-opacity:1;stroke:#454545;stroke-width:8.28628635;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path3197"
+ sodipodi:sides="3"
+ sodipodi:cx="11.428571"
+ sodipodi:cy="175.21933"
+ sodipodi:r1="168.57143"
+ sodipodi:r2="84.285713"
+ sodipodi:arg1="1.5707963"
+ sodipodi:arg2="2.6179939"
+ inkscape:flatsided="true"
+ inkscape:rounded="0.11"
+ inkscape:randomized="0"
+ d="M 11.428575,343.79076 C -20.688595,343.79076 -150.61715,118.74791 -134.55857,90.933621 C -118.49998,63.119335 141.35712,63.119328 157.41571,90.933613 C 173.47429,118.7479 43.545746,343.79076 11.428575,343.79076 z"
+ transform="matrix(1.385337,-1.1652199,1.1652199,1.385337,160.77379,177.08667)"
+ inkscape:export-filename="/home/kilian/workspace/trimage/trimage-icon.png"
+ inkscape:export-xdpi="11.166932"
+ inkscape:export-ydpi="11.166932" />
+ </g>
+</svg>
View
7 runner/trimage
@@ -1,7 +0,0 @@
-#!/usr/bin/env python
-import subprocess
-import os, sys
-
-if __name__ == "__main__":
- path = "/usr/share/trimage/trimage.py"
- subprocess.call([sys.executable, path] + sys.argv[1:])
View
5 setup.cfg
@@ -1,5 +0,0 @@
-[install]
-install_lib=/usr/share/trimage
-install_data=/usr/share/trimage
-install_scripts=/usr/bin
-
View
43 setup.py
@@ -1,31 +1,22 @@
#!/usr/bin/env python
from distutils.core import setup
-from trimage import VERSION
setup(name = "trimage",
- version = VERSION,
- description = "Trimage image compressor - A cross-platform tool for optimizing PNG and JPG files",
- author = "Kilian Valkhof, Paul Chaplin",
- author_email = "help@trimage.org",
- url = "http://trimage.org",
- license = "MIT license",
- packages = ["hurry", "hurry/filesize",""],
- data_files = [("share/applications", ["trimage.desktop"]),
- ("pixmaps", ["pixmaps/list-add.png",
- "pixmaps/view-refresh.png",
- "pixmaps/compressing.gif",
- "pixmaps/trimage-icon.png"])],
- scripts = ["runner/trimage"],
- long_description = """Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and jpegoptim, depending on the filetype (currently, PNG and JPG files are supported). It was inspired by imageoptim. All image files are losslessy compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.""",
- requires = ["PyQt4 (>=4.4)"],
- classifiers = [
- 'Programming Language :: Python :: 2',
- 'Development Status :: 4 - Beta',
- 'Environment :: X11 Applications :: Qt',
- 'Intended Audience :: End Users/Desktop'
- 'Intended Audience :: Developers',
- 'Operating System :: POSIX :: linux',
- ],
-
- )
+ version = "1.0.0b",
+ description = "Trimage image compressor - A cross-platform tool for optimizing PNG and JPG files",
+ author = "Kilian Valkhof, Paul Chaplin",
+ author_email = "help@trimage.org",
+ url = "http://trimage.org",
+ license = "MIT license",
+ package_dir = {'trimage' : 'src/trimage'},
+ packages = ["trimage",
+ "trimage.hurry",
+ "trimage.hurry.filesize"],
+ package_data = {"trimage" : ["pixmaps/*.*"] },
+ data_files=[('share/icons/hicolor/scalable/apps', ['desktop/trimage.svg']),
+ ('share/applications', ['desktop/trimage.desktop'])],
+ scripts = ["trimage"],
+ long_description = """Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and jpegoptim, depending on the filetype (currently, PNG and JPG files are supported). It was inspired by imageoptim. All image files are losslessy compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.""",
+ requires = ["PyQt4 (>=4.4)"],
+ )
View
0 __init__.py → src/trimage/__init__.py
File renamed without changes.
View
0 hurry/__init__.py → src/trimage/hurry/__init__.py
File renamed without changes.
View
0 hurry/filesize/README.txt → src/trimage/hurry/filesize/README.txt
File renamed without changes.
View
0 hurry/filesize/__init__.py → src/trimage/hurry/filesize/__init__.py
File renamed without changes.
View
0 hurry/filesize/filesize.py → src/trimage/hurry/filesize/filesize.py
File renamed without changes.
View
0 hurry/filesize/tests.py → src/trimage/hurry/filesize/tests.py
File renamed without changes.
View
0 pixmaps/compressing.gif → src/trimage/pixmaps/compressing.gif
File renamed without changes
View
0 pixmaps/list-add.png → src/trimage/pixmaps/list-add.png
File renamed without changes
View
0 pixmaps/trimage-icon.png → src/trimage/pixmaps/trimage-icon.png
File renamed without changes
View
0 pixmaps/view-refresh.png → src/trimage/pixmaps/view-refresh.png
File renamed without changes
View
0 trimage.py → src/trimage/trimage.py
File renamed without changes.
View
0 ui.py → src/trimage/ui.py
File renamed without changes.
View
23 trimage
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+#
+#Copyright (c) 2010 Kilian Valkhof, Paul Chaplin
+#
+#Permission is hereby granted, free of charge, to any person
+#obtaining a copy of this software and associated documentation
+#files (the "Software"), to deal in the Software without
+#restriction, including without limitation the rights to use,
+#copy, modify, merge, publish, distribute, sublicense, and/or sell
+#copies of the Software, and to permit persons to whom the
+#Software is furnished to do so, subject to the following
+#conditions:
+#
+#The above copyright notice and this permission notice shall be
+#included in all copies or substantial portions of the Software.
+
+import os, sys
+import subprocess
+import trimage
+
+if __name__ == "__main__":
+ path = os.path.join(os.path.dirname(trimage.__file__), "trimage.py")
+ subprocess.call([sys.executable, path] + sys.argv[1:])

0 comments on commit 8dcec26

Please sign in to comment.