Saturday, November 1, 2003
Converting Pictures for PDAs -- 8:26 pm CST, Update by A.T. Hun
Sadly, unless you use a memory card, you have to use proprietary Windows software to convert pictures so you can view them on your PalmOS PDA. Thanks to a program called Par, I can convert jpgs into file stream databases that can be uploaded into the PDA's main memory and viewed via SplashPhoto or some other Palm image viewer. Par is powerful, but obtuse. To save you a few brain cells, here's the command I used to convert a file called "LOGOS2.jpg". I managed to view it via SplashPhoto just fine:
par c -a "stream" LOGOS2.jpg.pdb LOGOS2.jpg Foto Foto LOGOS2.jpg
The "c" argument creates the database, -a "stream" makes it a file stream, LOGOS2.jpg.pdb is the filename it creates, LOGOS2.jpg is the name as it will appear on the PDA (SplashPhoto needs the .jpg extension), Foto is the file type, the second Foto is the creator id, and finally LOGOS2.jpg is the file to turn into a database.
It may not be the prettiest thing in the world, but anything that allows me to avoid using Windows makes me one happy guy.
UPDATE! I also created a quick and dirty bash script so I don't have to remember all of this. I called it jpg2pdb.sh. All it does is take whatever filename you pass to it and convert it. It does no sanity checking at all, so don't try anything crazy with it other than converting jpgs. Here it is:
#!/bin/sh
par c -a "stream" "$1".pdb "$1" Foto Foto "$1"
Recent Headlines
January 5, 2015: It Returns!
August 10, 2007: SCO SUCKS IT DOWN!
July 5, 2007: Slackware 12.0 Released
May 20, 2007: PhpBB 3.0 RC 1 Released
February 2, 2007: DOOM3 1.31 Patch
January 27, 2007: Join the World Community Grid
January 17, 2007: Flash Player 9 for Linux
December 30, 2006: Darkness over Daggerford 1.2
December 19, 2006: Pocket Tunes 4.0 Released
December 9, 2006: WRT54G 1.01.1 Firmware OK with Linux/Mac
The Haus is powered by:
All original information on this website is copyright © TheHaus.Net, 1999-2005. The use of original images, text, and/or code from this website without expressed written consent is prohibited. The authors of this site cannot be held responsible for any damage, real or imagined, which comes from the use of information presented on this site. All trademarks used are the properties of their respective owners. This site is not to be used as a floatation device (but if you try, I want a video tape of it).