-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .desktop files to restore lossless jpeg rotation via editors.
- Loading branch information
Laurent Monin
committed
May 26, 2009
1 parent
257284e
commit 894ebca
Showing
7 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |