summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/local-website/htdocs/mythtv-doc/mythtv-HOWTO-15.html
blob: f9a6ba7e1123db46b071786d75e31121a62d1ba1 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>Installing and using MythTV: MythGallery.</TITLE>
 <LINK HREF="mythtv-HOWTO-16.html" REL=next>
 <LINK HREF="mythtv-HOWTO-14.html" REL=previous>
 <LINK HREF="mythtv-HOWTO.html#toc15" REL=contents>
</HEAD>
<BODY>
<A HREF="mythtv-HOWTO-16.html">Next</A>
<A HREF="mythtv-HOWTO-14.html">Previous</A>
<A HREF="mythtv-HOWTO.html#toc15">Contents</A>
<HR>
<H2><A NAME="s15">15.</A> <A HREF="mythtv-HOWTO.html#toc15">MythGallery.</A></H2>

<P>MythGallery is a photo and slideshow application.  MythGallery is a
separate application, but it's dependent on MythTV being installed and
operational.</P>
<H2><A NAME="ss15.1">15.1</A> <A HREF="mythtv-HOWTO.html#toc15.1">Installation and prerequisites</A>
</H2>

<P>MythGallery is a part of the <B>mythplugins</B> package.  See 
<A HREF="mythtv-HOWTO-13.html#mythplugins_">MythPlugins</A> for instructions on downloading the
tarball.</P>
<P>There are a number of transitions available, some requiring OpenGL
support.  You will also need to install a TIFF library.  Under Mandriva, you 
would perform the following command:
<BLOCKQUOTE><CODE>
<PRE>
# urpmi libtiff3-devel
</PRE>
</CODE></BLOCKQUOTE>

Once you have satisfied the prerequisites for your distribution, install the application:
<BLOCKQUOTE><CODE>
<PRE>
$ cd ~/mythplugins-0.21
$ ./configure --disable-all --enable-opengl --enable-mythgallery
$ qmake mythplugins.pro
$ make
# su
# make install
# exit
$ 
</PRE>
</CODE></BLOCKQUOTE>

The configuration for MythGallery is accessed through the main Setup option
in mythfrontend.  Make sure you set your pictures directory to wherever
you're storing your photos.</P>
<P>The controls for MythGallery can be found in the README that comes with the
application.</P>
<H2><A NAME="ss15.2">15.2</A> <A HREF="mythtv-HOWTO.html#toc15.2">Using MythGallery</A>
</H2>

<P>When you first start MythGallery, you will see a thumbnail view of any
folders and pictures in the Gallery Directory you specified in setup.  If
this is the first time you have accessed this directory, the thumbnails will
be generated on the fly.  If the Gallery Dir is writable, these thumbnails
will be cached thus speeding up future access.  On the left is a greyed-out
menu of options.</P>
<P>Use the arrow keys to select a folder or picture to open/view with the
Select key, or use the Menu key to toggle access the menu on the left.  The
menu options are as follows:
<UL>
<LI> Slideshow - Will cycle through all the pictures in the current folder. 
The currently selected item must be a picture (not a folder) for this to
work.  It does not currently traverse subfolders.</LI>
<LI> Rotate CW - Rotate the current image 90 degrees in the clockwise
direction.  This change persists if the current directory is writable.</LI>
<LI> Rotate CCW - As above except the direction of rotation is counter(anti)
clockwise.</LI>
<LI> Import - Import pictures into your Gallery Dir.  This option is
described in the next section.</LI>
<LI> Settings - Access the MythGallery settings screen.</LI>
</UL>
</P>
<H2><A NAME="ss15.3">15.3</A> <A HREF="mythtv-HOWTO.html#toc15.3">Importing Pictures</A>
</H2>

<P>The import path in the setup dialog is a colon separated list of
directories and/or executable files.  When the import key is pressed, a new
directory (the destination directory) under the current directory will be
created and the import path will be searched.  If the item in the import
path is a directory (the source directory), the contents of that directory
will be copied to the destination directory. If you would like the source
directory to be that of a removable device, it might be a good idea to use
autofs.  See the automount howto at 
<A HREF="www.linuxdoc.org">www.linuxdoc.org</A> for info on how to get it working.</P>
<P>If the item in the import path is an executable file, MythGallery will
attempt to execute it with the destination directory as its sole argument.
Be careful when using executable scripts that the script runs unattended
(doesn't need user intervention) and returns properly, otherwise it could
create the appearance of MythGallery hanging (e.g. running
<B>smbclient</B> and prompting for password).  Also be sure that scripts
have executable permissions set.</P>
<P>Here is an example script that a user may want to run
on import: 
<BLOCKQUOTE><CODE>
<PRE>
#!/bin/csh

if ($#argv == 0) then 
        echo "Usage: $0 dest_dir" 
        exit 
endif 

cd $argv[1]

# get stuff over the network
wget http://www.somesite.dom/dir/file1.jpg 
wget http://www.somesite.dom/dir/file2.jpg
wget http://www.somesite.dom/dir/file3.jpg

# stuff that requires manual module loading and/or fs mounting
modprobe camera_module
mount /dev/camera /mnt/camera
cp /mnt/camera/* $argv[1]
umount /mnt/camera
rmmod camera_module

# perform some processing
foreach pname (`ls *.jpg`)
        jpegtran -flip vertical $pname > $pname.new
        mv $pname.new $pname
end
</PRE>
</CODE></BLOCKQUOTE>
</P>

<HR>
<A HREF="mythtv-HOWTO-16.html">Next</A>
<A HREF="mythtv-HOWTO-14.html">Previous</A>
<A HREF="mythtv-HOWTO.html#toc15">Contents</A>
</BODY>
</HTML>