icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • bluetooth / serial / internal GPS, simulator
  • offline raster maps (common grids and projections)
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • ... and more
  • MIDP and Symbian phones
  • Blackberry
  • Android
  • Windows Mobile 5.x/6.x
  • Windows Phone coming
Visit our wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Command Line Tool to reduce colour depth of PNG-Tiles

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools
View previous topic :: View next topic  
Author Message
guest



Joined: 08 Oct 2006
Posts: 3949

PostPosted: Sun Jul 22, 2007 3:40 pm    Post subject: Command Line Tool to reduce colour depth of PNG-Tiles Reply with quote

Duffa wrote:
Quote:
Duffa what did you use in tb_cutter to decrease the bit depth? It actually produces better output than for example pngcrush an opensource command line utility (it produced strange results for bit_depth 4).

I use CxImage library for loading, saving and cutting bitmaps and CQuantizer for decreasing bit depth of bitmaps.

PNG-tiles reduced to 4 bpp by TB Cutter have indeed very good quality!!

Who knows or could create a simple command line tool which reduces a given PNG file to a given bit depth??? This could be used universally with or by every map/atlas creation tool and for every png processing. Something delivering better quality than pngcrush seems to be missing out there... Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 3949

PostPosted: Tue Sep 25, 2007 10:16 pm    Post subject: Reply with quote

Who wants to create this tool? Very Happy
Back to top
View user's profile Send private message Visit poster's website
smee0815



Joined: 20 Sep 2007
Posts: 1

PostPosted: Sat Sep 29, 2007 12:45 pm    Post subject: Reply with quote

http://www.libpng.org/pub/png/apps/pngquant.html
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 3949

PostPosted: Sun Sep 30, 2007 12:21 am    Post subject: Reply with quote

Thanks for the link, it's some nice tool.

However I tried it out and I'm sorry to say it's not reaching the quality of tb_cutter's output. This might be because pngquant seems to use dithering for reducing the number of colors, while tb_cutter seems to use the nearest available color without dithering. This is better for the readability of letters, i.e. in streetnames. Also when looking at the file properties pngquant does NOT actually reduce the bit depth of the file to 4, it only reduces the number of colors to 16.

So still looking out for an appropriate utility... Confused
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 3949

PostPosted: Thu Apr 10, 2008 9:02 pm    Post subject: Reply with quote

http://optipng.sourceforge.net/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group