Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!--This manual describes what the CentOS Artwork Repository is and what
can you do inside it.

Copyright C 2009, 2010 The CentOS Project. All rights
reserved.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
copy of the license is included in the section entitled GNU Free
Documentation License.  
-->
<!-- Created on September, 5 2010 by texi2html 1.76 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people <dev@texi2html.cvshome.org>
Send bugs and suggestions to <users@texi2html.cvshome.org>

-->
<head>
<title>CentOS Artwork Repository: 3.25.2 Usage</title>

<meta name="description" content="CentOS Artwork Repository: 3.25.2 Usage">
<meta name="keywords" content="CentOS Artwork Repository: 3.25.2 Usage">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.76">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
@import "/home/centos/artwork/trunk/Identity/Themes/Motifs/Modern/Web/Css/Texi2html/common.css";

a.summary-letter {text-decoration: none}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="SEC107"></a>
<table cellpadding="1" cellspacing="1" border="0" width="100%">
<tr><td valign="middle" align="left">[<a href="repository_106.html#SEC106" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_108.html#SEC108" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository_3.html#SEC3" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_105.html#SEC105" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="repository_114.html#SEC114" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="repository_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="repository_114.html#SEC114" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="repository_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>

<h3 class="subsection"> 3.25.2 Usage </h3>

<p>To create translation files for CentOS Brands use the commands:
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">cd /home/centos/artwork/trunk/Translations/Identity/Brands
centos-art render --translation
</pre></td></tr></table>
<p>The rendering process used to produce CentOS Brands translation files
is a bit different from that commonly found in other artwork
components inside CentOS Artwork Repository. Relevant differences are
described below:
</p>
<ol>
<li> CentOS brands' translation files are symbolic links pointing to the
common template translation structure, inside the translation template
(<samp>`Tpl'</samp>) directory.

</li><li> CentOS brands' translation files are created using design
templates as reference.  This script creates a translation structure
where the translation template (<samp>`Tpl'</samp>) directory structure
applies to each single design template available.

<p>For instance, if the translation template (<samp>`Tpl'</samp>) directory
structure has 30 translation files and there are 20 design templates,
this script creates a translation structure of symbolic links where
the 30 translation files apply the 20 design templates one by one,
producing 600 images as result --without counting possible formats
convenction that may happen during the post-rendering actions--.
</p></li></ol>

<p>Translation file names inside translation template (<samp>`Tpl'</samp>)
directory have special meaning:
</p>
<ol>
<li> Conventional file name (i.e. `blue.sed', `2c-a.sed', etc.): In
this case, replacements inside translation file are applied to design
template and the translation file name is used as final image name.
The final image is saved with same dimensions that its design template
has.

</li><li> Numeric file name only (i.e. `300.sed', `200.sed', etc.): In
this case, replacements inside translation files are applied to the
design template, and the translation file name is used as final image
name.  The final image is saved using an specific `width' defined by
the number part of the translation file name. The image `height' is
automatically scaled based on the previous `width' definition to
maintain the design template proportions. 

<p>For instance, if your design template has 400x200 pixels of dimension,
and you apply a translation file named `300.sed' to it, the final
image you get as result will have 300x100 pixels of dimension. 
</p>
<p>The same is true if you use higher numbers like `1024.sed',
`2048.sed', etc. In these cases you have bigger images proportionally.
</p>
<p>As we are using scalable vectorial graphics as source, image size
definition starts to be a problem on very small generated images.
Bigger images have better definition. As it is bigger, more is the
image definition you have. But take care, too much definition for an
image that was not designed for such a big dimension can result in
something that looks different from what you expect. Just try, look,
and decide by yourself.
</p></li></ol>

<p>Generally, translation files inside translation template (<tt>`Tpl'</tt>)
directory structure contain color replacements only. The color used as
replacement pattern is black (<samp>`#000000'</samp>).
</p>
<p>Using CentOS Brand translation files rendering script, CentOS Brand
designers can work freely and use this script to generate the
translation files that renderImage needs, in order to produce CentOS
Brand images in different dimensions and colors.
</p>

<table cellpadding="1" cellspacing="1" border="0" width="100%">
<tr><td valign="middle" align="left">[<a href="repository_106.html#SEC106" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_108.html#SEC108" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository_3.html#SEC3" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_105.html#SEC105" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="repository_114.html#SEC114" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="repository_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="repository_114.html#SEC114" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="repository_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated on <i>September, 5 2010</i> using <a class="www" href="http://texi2html.cvshome.org/"><i>texi2html 1.76</i></a>.
 </font>
 <br>

</p>
</body>
</html>