# HG changeset patch # User zas_ # Date 1243366882 0 # Node ID 5b36a6ff55aeccbfad242d81db8785b291662542 # Parent b1c5c5e4826d4e77c754ee2d29f43307bd1b996b Add .desktop files to restore lossless jpeg rotation via editors. diff -r b1c5c5e4826d -r 5b36a6ff55ae configure.in --- a/configure.in Sat May 23 21:23:06 2009 +0000 +++ b/configure.in Tue May 26 19:41:22 2009 +0000 @@ -406,6 +406,7 @@ doc/Makefile plugins/Makefile plugins/symlink/Makefile + plugins/rotate/Makefile geeqie.spec ]) diff -r b1c5c5e4826d -r 5b36a6ff55ae plugins/Makefile.am --- a/plugins/Makefile.am Sat May 23 21:23:06 2009 +0000 +++ b/plugins/Makefile.am Tue May 26 19:41:22 2009 +0000 @@ -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) diff -r b1c5c5e4826d -r 5b36a6ff55ae plugins/rotate/Makefile.am --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/rotate/Makefile.am Tue May 26 19:41:22 2009 +0000 @@ -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) + diff -r b1c5c5e4826d -r 5b36a6ff55ae plugins/rotate/geeqie-rotate --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/rotate/geeqie-rotate Tue May 26 19:41:22 2009 +0000 @@ -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 diff -r b1c5c5e4826d -r 5b36a6ff55ae plugins/rotate/rotate180.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/rotate/rotate180.desktop Tue May 26 19:41:22 2009 +0000 @@ -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; diff -r b1c5c5e4826d -r 5b36a6ff55ae plugins/rotate/rotate270.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/rotate/rotate270.desktop Tue May 26 19:41:22 2009 +0000 @@ -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; diff -r b1c5c5e4826d -r 5b36a6ff55ae plugins/rotate/rotate90.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/rotate/rotate90.desktop Tue May 26 19:41:22 2009 +0000 @@ -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;