<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JustSomeGuy</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JustSomeGuy"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/JustSomeGuy"/>
	<updated>2026-07-09T12:36:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=TexturePacker&amp;diff=101215</id>
		<title>TexturePacker</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=TexturePacker&amp;diff=101215"/>
		<updated>2015-09-17T19:03:57Z</updated>

		<summary type="html">&lt;p&gt;JustSomeGuy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Development]]|[[Add-on development]]|[[Skinning]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;Kodi uses a tool named TexturePacker to compile all images used in a skin into a single file. The benefit of it is that images inside the Textures.xbt will load faster in the skin. This is done by converting all images into a format that take less processing by Kodi when they need to be rendered onto the screen.&lt;br /&gt;
&lt;br /&gt;
A common misconception is that TexturPacker will just compress the images into a single file. This if far from the truth, so don&#039;t be surprised if the Textures.xbt file is much larger than the total size of all the individual images.&lt;br /&gt;
&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
== How To Get It ==&lt;br /&gt;
If you are using Windows, you can simply download a zipfile with an up-to-date version of TexturePacker from the Kodi mirrors.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;big&amp;gt;&#039;&#039;&#039;It is available here:&#039;&#039;&#039; [http://mirrors.kodi.tv/build-deps//win32/texturepacker-1.0.4-win32.7z &#039;&#039;&#039;Download TexturePacker 1.0.4&#039;&#039;&#039;]&amp;lt;/big&amp;gt;&lt;br /&gt;
{{note| This is a dll free self contained texturepacker executable for windows.}}&lt;br /&gt;
&lt;br /&gt;
On other platforms, you will have to compile TexturePacker. TexturePacker is built and stored in ../tools/depends/native/TexturePacker/bin during Kodi&#039;s configure process.  Bootstrap and configure can be lengthy. If you only need TexturePacker, you can save some effort: install the Kodi source and build dependencies in preparation for a build ([http://kodi.wiki/view/Category:Compiling &#039;&#039;&#039;Compiling from source&#039;&#039;&#039;]) and build TexturePacker directly:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd xbmc/tools/depends/native/TexturePacker&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note| TexturePacker depends on libgif which is currently not a &#039;&#039;Kodi&#039;&#039; dependency.  Ensure the library and its development headers (Debian: libgif-dev package) is installed before compiling.}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Since TexturePacker is a command-line tool, you will need to open a dos box/terminal/console in order to run it. The general usage is:&lt;br /&gt;
&amp;lt;pre&amp;gt;TexturePacker -input skin.name\media -output skin.name\media\Textures.xbt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optionally, you can run TexturePacker with the &#039;&#039;-dupecheck&#039;&#039; option. This is useful if you have included the same image multiple times in your media folder. For example, if your skin includes a lot of studio logos, most likely a lot of them are included multiple times but with a slightly different filename. The &#039;-dupecheck&#039; option will make sure each unique image is included only once in the Textures.xbt file, thus keeping the size of it as small as possible.&lt;br /&gt;
&lt;br /&gt;
If your skin includes [[Skin_development_introduction#Skin_Themes]] you should also run TexturePacker on your theme folders:&lt;br /&gt;
&amp;lt;pre&amp;gt;TexturePacker -input skin.name\themes\Blue -output skin.name\media\Blue.xbt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note| When using an XBT file in your skin, your file paths will &#039;&#039;&#039;not&#039;&#039;&#039; be case sensitive, even if your skin resides on a case sensitive file system!}}&lt;br /&gt;
&lt;br /&gt;
=== Texturepacker build bat ===&lt;br /&gt;
Create a Texturepacker.bat with the contents below, inside the skin.name directory along with all the texturepacker.exe, a double click on the bat file does all the work for you.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@ECHO OFF&lt;br /&gt;
&lt;br /&gt;
COLOR A&lt;br /&gt;
&lt;br /&gt;
ECHO -------------------------------------------------------------------------&lt;br /&gt;
ECHO ^&amp;gt; ** Creating excludes... **&lt;br /&gt;
&lt;br /&gt;
ECHO .svn&amp;gt;exclude.txt&lt;br /&gt;
ECHO .git&amp;gt;&amp;gt;exclude.txt&lt;br /&gt;
ECHO Thumbs.db&amp;gt;&amp;gt;exclude.txt&lt;br /&gt;
ECHO Desktop.ini&amp;gt;&amp;gt;exclude.txt&lt;br /&gt;
ECHO dsstdfx.bin&amp;gt;&amp;gt;exclude.txt&lt;br /&gt;
ECHO build.bat&amp;gt;&amp;gt;exclude.txt&lt;br /&gt;
ECHO \skin.confluence\media\&amp;gt;&amp;gt;exclude.txt&lt;br /&gt;
ECHO \skin.confluence\backgrounds\&amp;gt;&amp;gt;exclude.txt&lt;br /&gt;
ECHO exclude.txt&amp;gt;&amp;gt;exclude.txt&lt;br /&gt;
&lt;br /&gt;
ECHO -------------------------------------------------------------------------&lt;br /&gt;
ECHO.&lt;br /&gt;
&lt;br /&gt;
ECHO -------------------------------------------------------------------------&lt;br /&gt;
ECHO                   ** Creating Textures XBT File... **&lt;br /&gt;
ECHO -------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
ECHO.&lt;br /&gt;
PING -n 2 -w 1000 127.0.0.1 &amp;gt; NUL&lt;br /&gt;
START /B /WAIT TexturePacker -dupecheck -input media\ -output media\Texture.xbt&lt;br /&gt;
PING -n 2 -w 20000 127.0.0.1 &amp;gt; NUL&lt;br /&gt;
ECHO.&lt;br /&gt;
ECHO.&lt;br /&gt;
ECHO -------------------------------------------------------------------------&lt;br /&gt;
ECHO ^&amp;gt; Deleting excludes...&lt;br /&gt;
DEL exclude.txt&lt;br /&gt;
ECHO ^&amp;gt; Done&lt;br /&gt;
ECHO -------------------------------------------------------------------------&lt;br /&gt;
ECHO.&lt;br /&gt;
ECHO.&lt;br /&gt;
&lt;br /&gt;
ECHO -------------------------------------------------------------------------&lt;br /&gt;
ECHO        ** XBT build complete - scroll up to check for errors. **&lt;br /&gt;
ECHO -------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
PING -n 50 -w 5000 127.0.0.1 &amp;gt; NUL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Add-on development]]&lt;br /&gt;
[[Category:Skin development]]&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>JustSomeGuy</name></author>
	</entry>
</feed>