Results 1 to 9 of 9

Thread: [RESOLVED] Convert low-color bitmap to small png

  1. #1

    Thread Starter
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Resolved [RESOLVED] Convert low-color bitmap to small png

    This is a followup to:

    [RESOLVED] Save bmp to gif

    The solution provided in that thread worked flawlessly. However, the gif size has exceeded the 200k limit, so it no longer works for me.

    I started a new thread because I want to focus on just converting to the smallest png possible. Ideally I'd like to expand the map, so I'm hoping we can get this sample bitmap to under 100k in png format.

    Attached is the sample bitmap to convert. Specs:

    - Any solution is fine; only I will ever run it
    - It must be automated
    - Produce a png < 200k

    Thanks much for any help.
    Attached Files Attached Files

  2. #2
    Addicted Member
    Join Date
    Jul 2007
    Posts
    228

    Re: Convert low-color bitmap to small png

    Here's a convert to about 131KB
    Attached Images Attached Images  

  3. #3
    Addicted Member
    Join Date
    Jul 2007
    Posts
    228

    Re: Convert low-color bitmap to small png

    Oops I meant to upload a zip
    Attached Files Attached Files

  4. #4
    Addicted Member
    Join Date
    Jul 2007
    Posts
    228

    Re: Convert low-color bitmap to small png

    Hey Ellis:

    I did one more PNG at 4bpp 16 color index. Not a lot of color in the image so it looks okay and is like 65K.

    Tom
    Attached Files Attached Files

  5. #5

    Thread Starter
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Re: Convert low-color bitmap to small png

    How did you do that? I'm looking for an ongoing solution, since I run these scans every day.

  6. #6
    Addicted Member
    Join Date
    Jul 2007
    Posts
    228

    Re: Convert low-color bitmap to small png

    Oh man... sorry, I thought you were looking for the end result when in fact you were looking for code.

    I use the gdpicture ActiveX in my imaging programs which allows you to create, save, display, manipulate, etc. images in tons of formats and in depth from 1bit to 64bit. (www.gdpicture.com)

    I've seen lots of code to save to PNG in VB6 but not any I can recall that allows changing the color depth. If a commercial solution is a consideration gdpicture is a good product.

    Sorry for the misunderstanding, Ellis.

    Tom

  7. #7

    Thread Starter
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Re: Convert low-color bitmap to small png

    No problem. Thanks for the link, but I'm looking for free solution. It doesn't have to be VB6 code; calling out to an external freeware utility would be totally fine.

  8. #8
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: Convert low-color bitmap to small png

    Then how about PngOptimizer? There is a separate command line tool you can use.

    For example, it is able to shrink Tom Moran's PNG file from 67364 bytes to 59584 bytes. This with no quality loss at all.


    Edit!
    Tom Moran's first PNG can be shrunk from 133147 bytes to 77642.

  9. #9

    Thread Starter
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Re: Convert low-color bitmap to small png

    Sweet! I think that might do the trick.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width