|
-
Dec 30th, 2005, 09:11 AM
#1
[resolved] Convert bmp to...
Does anyone have or know where to find some code for converting bmp files to jpg and png that does not rely on shelling an external exe?
I'd like to add it as module or a class module.
Last edited by krtxmrtz; Jan 20th, 2006 at 04:26 AM.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Dec 30th, 2005, 09:15 AM
#2
Re: Convert bmp to...
I don't think you can do that. VB6 can only output BMPs.
-
Dec 30th, 2005, 09:18 AM
#3
Re: Convert bmp to...
See what you think of this.
-
Dec 30th, 2005, 09:27 AM
#4
Re: Convert bmp to...
Nice sample Hack but since JPEG is (I think) proprietary file format I wouldn't think output is true jpeg file. I could be wrong, though.
-
Dec 30th, 2005, 09:28 AM
#5
Re: Convert bmp to...
 Originally Posted by RhinoBull
Nice sample Hack but since JPEG is (I think) proprietary file format I wouldn't think output is true jpeg file. 
Oh...I thought jpeg was just another way of saying jpg. They are different?
-
Dec 30th, 2005, 09:29 AM
#6
Re: Convert bmp to...
 Originally Posted by Hack
Oh...I thought jpeg was just another way of saying jpg. They are different?
Same thing I guess just different ext.
-
Dec 30th, 2005, 09:46 AM
#7
Re: Convert bmp to...
Well, the thing is the output looks quite good and the compression ratio can be very high so, I'm not going to worry about it being "pure" jpg as long as I also can open the file with usual applications such as PhotoEd, Photoshop, etc.
For this reason I think I'm going to mark the thread as resolved.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Dec 30th, 2005, 09:48 AM
#8
Re: Convert bmp to...
 Originally Posted by krtxmrtz
Well, the thing is the output looks quite good and the compression ratio can be very high so, I'm not going to worry about it being "pure" jpg as long as I also can open the file with usual applications such as PhotoEd, Photoshop, etc.
For this reason I think I'm going to mark the thread as resolved.
I'm glad that is going to work for you because everything I found out, except this one thing, required some type of compiled file to work with to do the conversation, whether it was a .Exe or .Dll or whatever.
-
Dec 30th, 2005, 09:52 AM
#9
Re: Convert bmp to...
 Originally Posted by Hack
I'm glad that is going to work for you because everything I found out, except this one thing, required some type of compiled file to work with to do the conversation, whether it was a .Exe or .Dll or whatever.
Yes, DLLs or EXEs also worked for me but I had to place them in the Windows\System folder, which I don't always like to do.
Now I'd like to find something similar for png's but this is not so necessary/urgent at the moment. For now you've made my day...
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Jan 18th, 2006, 08:20 AM
#10
Re: Convert bmp to...
 Originally Posted by Hack
I'm glad that is going to work for you because everything I found out, except this one thing, required some type of compiled file to work with to do the conversation, whether it was a .Exe or .Dll or whatever.
As I said it works superbly.
Now I'm curious: could you gurus out there explain what exactly is the "sub-sampling" parameter? I gather it has to do with the degree of quality vs compression but how does it work (in simple terms) so I can decide by myself which is best for every case?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Jan 19th, 2006, 03:10 AM
#11
Re: [BUMP] Convert bmp to...
-
Jan 19th, 2006, 05:27 PM
#12
Re: [BUMP] Convert bmp to...
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Jan 19th, 2006, 09:52 PM
#13
Re: [BUMP] Convert bmp to...
-
Jan 20th, 2006, 04:25 AM
#14
Re: [BUMP] Convert bmp to...
 Originally Posted by penagate
Thanks. I spend a large % of my life googling around yet I just didn't think of it this time!
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|