summaryrefslogtreecommitdiffstats
path: root/konq-plugins/imagerotation/imageconverter.desktop
blob: 7aba3e666a941c8b778630cd5b8722000a7b492d (plain)
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
#
# Servicemenu image converter, by Jens Benecke <[email protected]>.
# Released under the same license as the KDE core distribution (GPL 2.0).
#
[Desktop Entry]
Icon=image-x-generic
X-TDE-ServiceTypes=image/*
Actions=convToJPEG;convToPNG;convToGIF;convToTIF;
X-TDE-Submenu=Convert To
TryExec=convert

[Desktop Action convToJPEG]
Name=JPEG
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;' ).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"