Results 1 to 17 of 17

Thread: BMP to JPEG conversation

  1. #1

    Thread Starter
    Hyperactive Member anita2002's Avatar
    Join Date
    Dec 2001
    Location
    In u'r Heart
    Posts
    482

    BMP to JPEG conversation

    Hi all,
    I want to convert BMP files into JPEG/JPG file because BMP files size is more. (around 1 MB. each) How can i convert them into JPEG programatically? Any API's? I want them in JPEG format as its size is almost 10 times less than BMP.
    Help Me..
    Anita
    Last edited by anita2002; Aug 17th, 2002 at 10:51 AM.
    Can't imagine life without VB
    (Various Boyfriends)

  2. #2
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    This should help. I didnt read it all though
    http://dilib.hypermart.net/dl/dijpg.htm

  3. #3
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    See this link.

  4. #4
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Bad request
    Invalid request -- no address for host www.planetsourcecode.com

  5. #5
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Does anyone else see this?

  6. #6
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    just keep in mind that BMP files are "lossless" and JPEG files are "lossy". That probably doesn't matter for your needs, but you should be aware of it in case it does.

  7. #7
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

  8. #8

    Thread Starter
    Hyperactive Member anita2002's Avatar
    Join Date
    Dec 2001
    Location
    In u'r Heart
    Posts
    482
    Originally posted by phinds
    just keep in mind that BMP files are "lossless" and JPEG files are "lossy". That probably doesn't matter for your needs, but you should be aware of it in case it does.
    Hi Phinds,
    Can u explain it more clearly? What do u want to say?
    "lossless" & "lossy"? Anyway, i can't afford 1MB for a single file. If i can convert it in JPEG format, it becomes less than even 50 kb. in size..
    But i just want to do it programatically..
    Help.
    Anita
    Can't imagine life without VB
    (Various Boyfriends)

  9. #9
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Maybe you can check out this file: http://haztek.d2g.com/files/bmp2jpg.zip

    <removed by admin>

  10. #10

    Thread Starter
    Hyperactive Member anita2002's Avatar
    Join Date
    Dec 2001
    Location
    In u'r Heart
    Posts
    482
    Originally posted by TomGibbons
    Does anyone else see this?
    Hi Tomgibbon,
    I tried http://dilib.hypermart.net/dl/dijpg.htm
    and even searched on www.planetsourcecde.com ("psc")
    Even i found some examples on "psc". But they are not working....
    Can anyone have code???
    Please help..
    Anita
    Can't imagine life without VB
    (Various Boyfriends)

  11. #11
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    ^^^ See my post ^^^
    <removed by admin>

  12. #12

    Thread Starter
    Hyperactive Member anita2002's Avatar
    Join Date
    Dec 2001
    Location
    In u'r Heart
    Posts
    482
    Originally posted by MidgetsBro
    ^^^ See my post ^^^
    Thanks MidgetsBro,
    U'r code worked perfectly...
    It solved my problem...
    Anita..
    Can't imagine life without VB
    (Various Boyfriends)

  13. #13
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    I knew that would help. I've posted it many times before.
    <removed by admin>

  14. #14

    Thread Starter
    Hyperactive Member anita2002's Avatar
    Join Date
    Dec 2001
    Location
    In u'r Heart
    Posts
    482
    Hi all,
    Sorry for opening this issue once again...
    Actually i got the answer by post of MidgetsBro. The code is working fine. But that code uses a dll file for this. Can anyone knows how it can be done without using a dll file? Any solution?
    please help..
    Anita
    Can't imagine life without VB
    (Various Boyfriends)

  15. #15
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    JPEG is "lossy" means that it throws away some of the graphic information. That's how it is able to be so small. all the information isn't there. As long as the picture does not look fuzzy when you display it, there is no problem. Most web pages use JPEG except for very small images, which are GIF (no loss).

    Why are DLLs a problem? MANY things in VB programming have to be done with DLLs. You should get used to using them

  16. #16
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Take a look at this link. You have the source code, but its still in C++.

  17. #17
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    I doubt there is a way to do this without a DLL. VB wasn't made to allow users to create complex compression algorithms. C++ is better in that area, and that is most likely what this DLL was created in. You can search the net, but you will probably not find any code to do this in VB. Everything will be done in C or C++.
    <removed by admin>

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