Solved

Converting BMP to JPEG

Posted on 1998-09-05
6
291 Views
Last Modified: 2013-11-19
How can I convert a BMP into a JPEG from Visual C++ ?
The source is a DIB-Image captured from a video-card and I have to convert it to JPEG-Images. I found a sollution by calling a command-line-converter, but I want to do all the work in my application. There are some web-sites which offer powerfull dll's or active-x but I'm looking for a free tool (doesn't have to be very powerfull - only converting).
0
Comment
Question by:joker1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
snoegler earned 50 total points
ID: 1172069
A class library can be found on:
www.visualc.com
Look for the 'CImage' class - supports many file types, is free, and can save .jpg files,
but has no option for compression ratio.

Also there is a 'nviewlib.dll' which is also free, and it does offer .jpg saving. You can
also specify the compression ratio in percent, but it has some disadvantages.
The page where i got it from is down, and i don't know where to get it now. But if you like,
i can post it to you via EMail (it is about 300-400 kb with docs).

But if the compression ratio is no argument for you, CImage is much more flexible.
(I think it uses some good quality, medium compression ratio).
Hope this helped :)
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1172070
Can give you a DLL that does that...The code is in Delp(Pascal)...Do you think it can help?

Regards,
Viktor Ivanov
0
 
LVL 6

Expert Comment

by:snoegler
ID: 1172071
I will upload it to http://absd.hypermart.net/media/nviewlib.zip
BTW: You're lucky, nviewlib is basically written for Delphi.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:snoegler
ID: 1172072
It think within the next few hours i am having enough time (its about 500k)
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1172073
Yeah, I;ve seen this one on the net somewhere....It lets you work with JPG files and it's very easy to work with....it includes conversion and stuff like that.....

Regards,
Viktor Ivaov
0
 

Author Comment

by:joker1
ID: 1172074
Sorry for my late answer - I was on holiday :-)

I found several good tools on www.visualc.com.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question