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.
Printable View
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.
I don't think you can do that. :ehh: VB6 can only output BMPs.
See what you think of this.
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. :confused:
Oh...I thought jpeg was just another way of saying jpg. They are different?Quote:
Originally Posted by RhinoBull
Same thing I guess just different ext.Quote:
Originally Posted by Hack
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.Quote:
Originally Posted by krtxmrtz
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.Quote:
Originally Posted by Hack
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... :thumb:
As I said it works superbly.Quote:
Originally Posted by Hack
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?
whoopysie
bump2
Thanks. I spend a large % of my life googling around yet I just didn't think of it this time!Quote:
Originally Posted by penagate