Preplogo

From ip tuning
Jump to: navigation, search


preplogo - Creates xml logo files and converts images for Cisco IP Phones (Desktops)

   Copyright (C) 2009 by Manuel Azevedo <azevedo.manuel[at]gmail[dot]com>

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.


Version 1.1 - 3rd May 2009

Included files

  • preplogo.kix
  • README (this file)
  • LICENSE

Necessary extra files

  • KiXtart
  • ImageMagick
    • It can be any version, but you need to edit preplogo.kix file to include the correct path to the ImageMagic executable if you do not install it in a standard install folder.
    • You can get one here: http://www.imagemagick.org/download/binaries/

How to run

Install ImageMagick. Ensure that Image Magic is installed and running (this is a command line utility!!)

Edit the $imagemagickconvert variable in the preplogo.kix ONLY if it cannot find ImageMagick automatically.

Expand the ZIP file with preplogo.kix into a directory. This directory will be the base of your logos - let's call it BASE.

Copy KiXtart.exe into that directory as well.

Copy an image file (supported formats are the same that Image Magic supports) to the same base directory. The file needs to have a minimum of 800x600 pixels in size or be bigger - if it is smaller, you'll get a bad image on the 7985.

Execute the preplogo.kix script like this:

D:\IPTuning Logo>dir
 Volume in drive D is IPTuning
 Volume Serial Number is XXXX-XXXX

 Directory of D:\IPTuning Logo

04-05-2009  13:37    <DIR>          .
04-05-2009  13:37    <DIR>          ..
04-05-2009  13:35            11.249 iptuninglogo.png
02-10-2007  08:01           290.816 KIX32.EXE
03-05-2009  12:40             4.467 preplogo.kix
               3 File(s)        306.532 bytes
               2 Dir(s)  27.466.686.464 bytes free

D:\IPTuning Logo>KIX32.EXE preplogo.kix $img="iptuninglogo.png"

Found ImageMagick convert utility: C:\Program Files\ImageMagick-6.4.8-Q16\convert.exe
Creating desktop for: 800x600
 800x600: Converting geometry
 800x600: Creating thumbnail
 800x600x16: Writing XML file 0
Creating desktop for: 320x216
 320x216: Converting geometry
 320x216: Creating thumbnail
 320x216x16: Writing XML file 0
Creating desktop for: 320x212
 320x212: Converting geometry
 320x212: Creating thumbnail
 320x212x16: Writing XML file 0
Creating desktop for: 320x212
 320x212: Converting geometry
 320x212: Creating thumbnail
 320x212x12: Writing XML file 0
Creating desktop for: 320x196
 320x196: Converting geometry
 320x196: Creating thumbnail
 320x196x4: Writing XML file 0
Creating desktop for: 95x34
 95x34: Converting geometry
 95x34: Creating thumbnail
 95x34x1: Writing XML file 0
D:\IPTuning Logo>dir
 Volume in drive D is IPTuning
 Volume Serial Number is XXXX-XXXX

 Directory of D:\IPTuning Logo

04-05-2009  13:38    <DIR>          .
04-05-2009  13:38    <DIR>          ..
04-05-2009  13:38    <DIR>          320x196x4
04-05-2009  13:38    <DIR>          320x212x12
04-05-2009  13:38    <DIR>          320x212x16
04-05-2009  13:38    <DIR>          320x216x16
04-05-2009  13:38    <DIR>          800x600x16
04-05-2009  13:38    <DIR>          95x34x1
04-05-2009  13:35            11.249 iptuninglogo.png
02-10-2007  08:01           290.816 KIX32.EXE
03-05-2009  12:40             4.467 preplogo.kix
               3 File(s)        306.532 bytes
               8 Dir(s)  27.466.555.392 bytes free

D:\IPTuning Logo>

Troubleshooting

  • 7985
    • If the image on the 7985 is garbled, lower the image depth;
    • This phone does not support the thumbnail image, tough one is created anyway.
  • 7921
    • This phone does not support images
  • 7940/7960
    • This application does not create logos for this phones - because this phones do not support logos. They can support IDLE URLs.
  • 7905/7912
    • This application does not create logos for this phones - logos for these phones are in a different format. Use cfgfmt and bmp2logo from Cisco.

Download

Kixtart script

File:Preplogo-v1.1.zip