1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#
# Servicemenu image converter, by Jens Benecke <jens-kde@spamfreemail.de>.
# Released under the same license as the KDE core distribution (GPL 2.0).
#
[Desktop Entry]
Icon=image-x-generic
X-TDE-ServiceTypes=image/*
Actions=convToJPEGsimple;convToJPEGviaPerl;convToPNG;convToGIF;convToTIF;
X-TDE-Submenu=Convert To
TryExec=convert
[Desktop Action convToJPEGsimple]
Name=JPEG (simple)
Icon=image-x-generic
Exec=convert %f "$$( identify -format "%%d/%%t-simple.jpg" %f )"
[Desktop Action convToJPEGviaPerl]
Name=JPEG (via Perl)
Icon=image-x-generic
Exec=convert %f "$$( echo -n %f\[0\] | perl -pe 's/%/%%/gs; $$n=$$_; open $$h, "-|", "identify", "-format", "%d/%t", $$n; $$_=<$$h>; close $$h; chomp;' )-perl.jpg"
[Desktop Action convToPNG]
Name=PNG
Icon=image-x-generic
Exec=convert %f "$$(echo -n %f\[0\] | perl -pe 's/%/%%/gs; $$n=$$_; open $$h, "-|", "identify", "-format", "%d/%t", $$n; $$_=<$$h>; close $$h; chomp;').png"
[Desktop Action convToTIF]
Name=TIF
Icon=image-x-generic
Exec=convert %f "$$(echo -n %f\[0\] | perl -pe 's/%/%%/gs; $$n=$$_; open $$h, "-|", "identify", "-format", "%d/%t", $$n; $$_=<$$h>; close $$h; chomp;').tif"
[Desktop Action convToGIF]
Name=GIF
Icon=image-x-generic
Exec=convert %f "$$(echo -n %f\[0\] | perl -pe 's/%/%%/gs; $$n=$$_; open $$h, "-|", "identify", "-format", "%d/%t", $$n; $$_=<$$h>; close $$h; chomp;').gif"
|