Revision: 1714
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1714&view=rev
Author:   zas_
Date:     2009-05-26 19:41:22 +0000 (Tue, 26 May 2009)

Log Message:
-----------
Add .desktop files to restore lossless jpeg rotation via editors.

Modified Paths:
--------------
    trunk/configure.in
    trunk/plugins/Makefile.am

Added Paths:
-----------
    trunk/plugins/rotate/
    trunk/plugins/rotate/Makefile.am
    trunk/plugins/rotate/geeqie-rotate
    trunk/plugins/rotate/rotate180.desktop
    trunk/plugins/rotate/rotate270.desktop
    trunk/plugins/rotate/rotate90.desktop

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in  2009-05-23 21:23:06 UTC (rev 1713)
+++ trunk/configure.in  2009-05-26 19:41:22 UTC (rev 1714)
@@ -406,6 +406,7 @@
     doc/Makefile
     plugins/Makefile
     plugins/symlink/Makefile
+    plugins/rotate/Makefile
     geeqie.spec
 ])
 

Modified: trunk/plugins/Makefile.am
===================================================================
--- trunk/plugins/Makefile.am   2009-05-23 21:23:06 UTC (rev 1713)
+++ trunk/plugins/Makefile.am   2009-05-26 19:41:22 UTC (rev 1714)
@@ -1,6 +1,5 @@
-SUBDIRS = symlink
+SUBDIRS = rotate symlink
 qq_desktoptemplatedir = $(pkgdatadir)
 qq_desktoptemplate_DATA = template.desktop
 
-EXTRA_DIST = \
-       $(qq_desktoptemplate_DATA)
+EXTRA_DIST = $(qq_desktoptemplate_DATA)


Property changes on: trunk/plugins/rotate
___________________________________________________________________
Added: svn:ignore
   + Makefile
Makefile.in



Added: trunk/plugins/rotate/Makefile.am
===================================================================
--- trunk/plugins/rotate/Makefile.am                            (rev 0)
+++ trunk/plugins/rotate/Makefile.am    2009-05-26 19:41:22 UTC (rev 1714)
@@ -0,0 +1,7 @@
+dist_bin_SCRIPTS = geeqie-rotate
+
+qq_desktopdir = $(pkgdatadir)/applications
+qq_desktop_DATA = rotate90.desktop rotate180.desktop rotate270.desktop
+
+EXTRA_DIST = $(qq_desktop_DATA)
+

Added: trunk/plugins/rotate/geeqie-rotate
===================================================================
--- trunk/plugins/rotate/geeqie-rotate                          (rev 0)
+++ trunk/plugins/rotate/geeqie-rotate  2009-05-26 19:41:22 UTC (rev 1714)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# This is a helper script that rotate jpeg files using jpegtran
+
+rotation=$1
+shift
+
+for file in "$@" ; do
+       tmp="$file".$$
+       if jpegtran -rotate "$rotation" -copy all -outfile "$tmp" "$file"; then
+               mv -f "$tmp" "$file";
+       else
+               rm -f "$tmp";
+       fi
+done


Property changes on: trunk/plugins/rotate/geeqie-rotate
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/plugins/rotate/rotate180.desktop
===================================================================
--- trunk/plugins/rotate/rotate180.desktop                              (rev 0)
+++ trunk/plugins/rotate/rotate180.desktop      2009-05-26 19:41:22 UTC (rev 
1714)
@@ -0,0 +1,20 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Rotate 180 degrees
+Name[fr]=Rotation 180°
+
+# call the helper script
+Exec=geeqie-rotate 180 %f
+
+# Desktop files that are usable only in Geeqie should be marked like this:
+Categories=X-Geeqie;
+OnlyShowIn=X-Geeqie;
+
+# Show in menu "File"
+X-Geeqie-Menu-Path=FileMenu/FileOpsSection
+
+# It can be made verbose
+#X-Geeqie-Verbose=true
+
+MimeType=image/jpeg;image/jpg;

Added: trunk/plugins/rotate/rotate270.desktop
===================================================================
--- trunk/plugins/rotate/rotate270.desktop                              (rev 0)
+++ trunk/plugins/rotate/rotate270.desktop      2009-05-26 19:41:22 UTC (rev 
1714)
@@ -0,0 +1,20 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Rotate 90 degrees counterclockwise
+Name[fr]=Rotation 90° vers la gauche
+
+# call the helper script
+Exec=geeqie-rotate 270 %f
+
+# Desktop files that are usable only in Geeqie should be marked like this:
+Categories=X-Geeqie;
+OnlyShowIn=X-Geeqie;
+
+# Show in menu "File"
+X-Geeqie-Menu-Path=FileMenu/FileOpsSection
+
+# It can be made verbose
+#X-Geeqie-Verbose=true
+
+MimeType=image/jpeg;image/jpg;

Added: trunk/plugins/rotate/rotate90.desktop
===================================================================
--- trunk/plugins/rotate/rotate90.desktop                               (rev 0)
+++ trunk/plugins/rotate/rotate90.desktop       2009-05-26 19:41:22 UTC (rev 
1714)
@@ -0,0 +1,20 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Rotate 90 degrees clockwise
+Name[fr]=Rotation 90° vers la droite
+
+# call the helper script
+Exec=geeqie-rotate 90 %f
+
+# Desktop files that are usable only in Geeqie should be marked like this:
+Categories=X-Geeqie;
+OnlyShowIn=X-Geeqie;
+
+# Show in menu "File"
+X-Geeqie-Menu-Path=FileMenu/FileOpsSection
+
+# It can be made verbose
+#X-Geeqie-Verbose=true
+
+MimeType=image/jpeg;image/jpg;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to