Pro VB 6For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
There are two basic approaches to converting image formats. The easy way means spending money; the hard way means lots of learning.
I have only done the easy way, which is purchasing a 3rd party API. There are many graphics APIs for VB. Typically if you get one of these, you will create an “Picture” object and load the JPG. Then you use a “SaveAs” method to save the image as a TIFF.
There are many different types of TIFF files, (photo types, text document types, etc). Depending on what type of TIFF you want to support, will help you eliminate who’s API you can use.
The other advantage of using a 3rd party API, is that they have already dealt with the licensing of the JPG & TIFF formats for you, so you don't have to worry about any of that mess.
The hard way would be to load the jpg into a picturebox, then convert this to the TIFF output format. Note that both JPG and TIFF could have licensing issues. I am not sure who owns the JPG format, but I believe that Adobe owns TIFF (I am not 100% sure of this).
You said you already tried the 3rd party solution. Can you give me your opinion of what you found out about your specific case? you know, usually we can find a lot of solutions but must of the times we are not sure that we'll have a good support, we don't know the limitations of it and sometimes the final result it was not what we were looking for. I don't know if I made myself clear...
I haven't worked with any in a long time. I can't give advise on affordable solutions, but if stability and reliability is your main goal, I would go with Lead Tools. They have many different options, have been around for years, and are probably the best choice if money isn't an issue. (www.leadtools.com). I would read over the different packages they have, and determine which one meets your needs.
On one project, we have a command line program that you just passed a path of the jpg & the path you wanted the new tiff to be created at. I didn't personally do the research or the development for this project, so I don't know what the company was.
My experience with LeadTools support was negative. The product is very powerful, but I was not impressed with the support. I have used a few small tools, but have never had any dealings with support on those tools.
I heartily agree. I started a project with the Lead control to display TIF files and it was a complete disaster. The techical support was terrible and the documentation was even worse. I switched to a control from Pegasus, which worked well. Support and documentation were also not great, but the control worked as promised. And consistently, I might add, which was not a characteristic of the Lead control.
I have used both Pegasus Software and Lead Tools and in my opinion there is not a lot between them. Lead is more expensive, especially if you have to consider royalties. Pegasus' range is very extensive and very powerful (but not quite as powerful as Lead) and I have not had any problem's with there support. Mind you, I do have the top level support contract with them, so maybe that is the difference.
I would highly recommend Pegasus' ImagXpress ActiveX control. Certainly for simply converting a JPEG to a TIFF the control will have no problems at all. I think I would be a little hesitant to shell out for the control if all I was doing was changing a file format, however if you want to manipulate the image (crop, annotate, emboss, resample, etc.) then I think the price is justified.
If you are looking for a much cheaper solution then take a look at The VB Zone, click on the VB Standard Modules option on the left menu bar and download the modFreeImage.bas and FreeImage.dll file's. I have never used these but I don't think much can go wrong with converting a file from one format to another. You could also try downloading his Advanced Bitmap Processing application if you want more manipulation power, it will cost you $10 though, however that is a lot less than either Lead Tools or Pegasus Software.