Warning, /graphics/kphotoalbum/doc/importexport.docbook is written in an unsupported language. File is not indexed.

0001 <!--
0002 SPDX-FileCopyrightText: 2004-2006 Jesper K. Pedersen <jesper.pedersen@kdab.com>
0003 SPDX-FileCopyrightText: 2012 Miika Turkia <miika.turkia@gmail.com>
0004 
0005 SPDX-License-Identifier: GFDL-1.2-only
0006 -->
0007 
0008 <chapter id="chp-importExport">
0009   <title>Import/Exporting</title>
0010   <para>If you attend a family party, a company meeting, a conference, or
0011       any other event where other &kphotoalbum; users may be present, you may
0012       wish to share your images with those people. You may of course choose
0013       to generate &HTML; pages for them to browse, but given you already have
0014     spent time classifying all images (Who is on the images, where were they
0015       taken etc), there are no reason for them to redo all that
0016       work.</para>
0017 
0018     <para>&kphotoalbum; allows you to export a set of your images into a
0019       <literal role="extension">.kim</literal> file, which other people may import into
0020       their database, to get your classification for these images.</para>
0021 
0022     <para>Two different kind of <literal role="extension">.kim</literal> files exists,
0023       inlines or externals, referring to whether the images them self are
0024       located in the file or at some other location. Placing the images in
0025       the file has the obvious advantage that the file is self contained,
0026       while it has the equally obvious disadvantage of the file being
0027       rather big.</para>
0028 
0029     <para>There are two places from which you may generate a
0030       <literal role="extension">.kim</literal> file, namely directly from
0031       <menuchoice><guimenu>File</guimenu><guimenuitem>Export...</guimenuitem></menuchoice>, 
0032       or along with &HTML; pages (see <xref linkend="chp-generating-html"/>). Creating a
0033       <literal role="extension">.kim</literal> file during &HTML; export will create an
0034       external <literal role="extension">.kim</literal> file.</para>
0035 
0036     <para>External <literal role="extension">.kim</literal> files will search for images in
0037       one of two ways. First it will try to look for the images next to the
0038       <literal role="extension">.kim</literal> file, and if not found, it will search for them
0039       at the URL specified when the <literal role="extension">.kim</literal> file was
0040       created. Notice the later is only possible for
0041       <literal role="extension">.kim</literal> files created during &HTML; export.</para>
0042     
0043     <sect1 id="chp-exportDialog">
0044       <title>Export Dialog</title>
0045       <para>This section will tell you about the export dialog which you
0046         get to from <menuchoice><guimenu>File</guimenu>
0047         <guimenuitem>Export...</guimenuitem></menuchoice>.</para>
0048 
0049       <para>The most important part of this dialog is specifying whether
0050         the <literal role="extension">.kim</literal> file should be internal or external
0051         (see description above). You have the following three
0052         options:
0053       
0054         <itemizedlist>
0055           <listitem><para>Include in <literal role="extension">.kim</literal> file - this
0056               will be an internal file</para></listitem>
0057           <listitem><para>Manual copy next to .kim file - Here you must
0058               copy the images yourself next to the .kim file</para></listitem>
0059           <listitem><para>Automatically copy next to .kim file - here
0060               &kphotoalbum; will copy the images for you.</para></listitem>
0061         </itemizedlist>
0062       </para>
0063       
0064       <para>Between you and me, <literal role="extension">.kim</literal> files are really
0065         just zip files. Normally it is not worth bothering compressing the
0066         files because images normally are compressed JPEG already, and the
0067         XML file itself are really tiny. If you really want to squish out
0068         the last few bytes, you may still do so, by checking
0069         <guilabel>Compress Export File</guilabel></para>
0070 
0071       <para>The final option on the page are <guilabel>Limit maximum image
0072           dimension</guilabel>. When sending some images to some friends,
0073         you may not want to send images in full size, as the
0074         <literal role="extension">.kim</literal> file might be huge. For this, you may
0075         specify that the maximum dimension of images should be say maximum 800
0076         pixels in each direction.</para>
0077     </sect1>
0078 
0079 
0080 
0081 
0082     
0083 <sect1 id="chp-importDialog">
0084   <title>Import Dialog</title>
0085 <para>When you select a <literal role="extension">.kim</literal> file from a web
0086     browser, or choose
0087 <menuchoice><guimenu>File</guimenu><guimenuitem>Import...</guimenuitem></menuchoice>, 
0088 &kphotoalbum; will import the database exported with the functionality described in <xref
0089 linkend="chp-importExport"/>.</para>
0090 
0091 <para>The import wizard consist of four steps. First you must specify which
0092 images you want to import. Next you must specify in which directory to put
0093 the imported images.</para>
0094 
0095 <para>Chances are that you call the people category
0096 <emphasis>personen</emphasis> (if you are German), while I in Danish might
0097 call this category <emphasis>personer</emphasis>. In the third step of the
0098 import dialog, you must specify which category from the import file to
0099 import, plus which categories in your database they match.</para>
0100 
0101 <para>I might call myself in my databases for <emphasis>me</emphasis>,
0102 while in your database I'm called Jesper K. Pedersen. Step four let you set
0103 up matching for each of the imported categories. This can be see in <xref linkend="fig-import-dialog"/>.</para>
0104 
0105 <figure id="fig-import-dialog">
0106 <title>Matching People in the Import Dialog </title>
0107 <mediaobject>
0108 <imageobject>
0109 <imagedata fileref="import-dialog.png" format="PNG"/>
0110 </imageobject>
0111 </mediaobject>
0112 </figure>
0113 
0114 <para>In the screen shot you may see that Donna is the same in both the
0115 .kim file and in my database - the name is shown in black to indicate a
0116 perfect match in the database. The other three names was not found in the
0117 database, though both Jesper and Anne Helene was found matching as
0118 substring, so these are suggested. Finally in my database I didn't have
0119 Spiff (or I might have named it quite differently), so &kphotoalbum; simply
0120 suggest Spiff for the import name.</para>
0121 
0122 </sect1>
0123   </chapter>
0124 
0125 
0126 <!-- Keep this comment at the end of the file
0127 Local variables:
0128 mode: xml
0129 sgml-namecase-general:t
0130 sgml-general-insert-case:lower
0131 sgml-always-quote-attributes:t
0132 sgml-indent-step:2
0133 sgml-parent-document: "index.docbook"
0134 End:
0135 -->