[Gpsbabel-misc] Solved (at least partially): Error msg: Unsupported color depth (4)
Brought to you by:
robertl
From: Gustav S. <gus...@gm...> - 2009-08-10 13:59:32
|
Hi, all. With some good pointers provided by Robert and Thomas, I have come to something of a solution. If I use the 'convert' utility, part of the Image Magick package, to adjust the imput bitmap file, then I can make gpsbabel accept the file in question. $ convert CHRF-030.bmp -type TrueColor CHRF-030-tc.bmp $ gpsbabel -i csv -f CHRF-030.csv -o garmin_gpi,bitmap=CHRF-030-tc.bmp -F poi.gpi $ # Converted to TrueColor, it was accepted!! I also tried to convert the "TrueColor'ed" file to an optimized version, but then gpsbabel refuses it again. $ convert CHRF-030.bmp -type TrueColor CHRF-030-tc.bmp $ convert CHRF-030-tc.bmp -type optimize CHRF-030-opt.bmp $ gpsbabel -i csv -f CHRF-030.csv -o garmin_gpi,bitmap=CHRF-030-opt.bmp -F poi.gpi garmin_gpi: Unsupported color depth (4)! $ # So I have to accept the large file which are a result to the TrueColor conversion. But that's a minor problem to me. Conclusion: It's not 100% solved (why and how can POILoader from Garmin handle to input file?), but it's solved good enough for my purposes. Life goes on. ;-) Best regards GuS ---------- Forwarded message ---------- From: Gustav Schaffter <gus...@gm...> Date: Thu, Aug 6, 2009 at 17:49 Subject: Error msg: Unsupported color depth (4) To: gps...@li... Hi, My first use of gpsbabel, my first problem and my first posting to the list. ;-) When trying to build a garmin_gpi formatted output file, including an output .bmp file, gpsbabel terminates with the error message: garmin_gpi: Unsupported color depth (4)! The same pair of files is successfully loaded into a poi.gpi file by Garmin's Windows application POILoader. Since I run Linux, I'd like to use gpsbabel to do the same. (And more. ;-) Some details: I have a .csv file plus a .bmp file that I have downloaded from http://www.gpspassion.com/upload/poienfrance/RadarsSuisse.zip It can be referenced from http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=72638 When unzipped, there is (among many other files) the two following files that I will use to describe my problem: ../POI_Garmin_csv/CHRF-030.csv ../Icones_bmp/CHRF-030.bmp My command: $ gpsbabel -i csv -f CHRF-030.csv -o garmin_gpi,bitmap=CHRF-030.bmp -F poi.gpi garmin_gpi: Unsupported color depth (4)! $ I then tried to use convert from the ImageMagick suite, another program that I'm not entirely familiar with. My intention was to 'convert' the bitmap file to eight bit depth, something that the gpsbabel source code should support and accept. (Well, at least the source code for version 1.3.4 claims that it should be OK.) The command: $ convert CHRF-030.bmp -depth 8 CHRF-030.d8.bmp Not sure about the result, but had no error messages and the file was created. It has the same size as the original CHRF-030.bmp file. I'm not sure how I can verify the colour depth of a .bmp file. ;-) Now I run the command: $ gpsbabel -i csv -f CHRF-030.csv -o garmin_gpi,bitmap=CHRF-030.d8.bmp -F poi.gpi garmin_gpi: Unsupported color depth (4)! # As you may notice, the error message is the same. # In both cases, the output file is created with a zero size. Being out of ideas, I turn to the mailing list and ask for help, advice or at least a pointer in the right direction. # Software versions at play: $ uname -a Linux gus-laptop 2.6.29-1-netbook #0array1 SMP Mon Feb 23 15:02:03 MST 2009 i686 GNU/Linux $ gpsbabel -V GPSBabel Version 1.3.6 $ convert -version Version: ImageMagick 6.4.5 2009-06-04 Q16 OpenMP http://www.imagemagick.org Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC What more can I provide to support my quest for help? I'm not sure if it's considered good list-iquette to attach the .bmp and .csv files, but I will be more than happy to do so on specific request. Best Regards GuS |