Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB 6 For 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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 23rd, 2003, 05:03 AM
Authorized User
 
Join Date: Jun 2003
Location: Lisbon, , Portugal.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert JPG to TIFF

Hello,

I need to convert JPG files to TIFF files, in a vb project. Does anybody knows where I can find information about it?

Thanks a lot to all,



Elisa Resina
__________________
Elisa Resina
Reply With Quote
  #2 (permalink)  
Old October 23rd, 2003, 10:32 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Sparks, NV, USA.
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

Elisa,

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).


John R Lick
JohnRLick@hotmail.com
Reply With Quote
  #3 (permalink)  
Old October 23rd, 2003, 11:54 AM
Authorized User
 
Join Date: Jun 2003
Location: Lisbon, , Portugal.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks John, :)

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...

Thanks,



Elisa Resina
Reply With Quote
  #4 (permalink)  
Old October 23rd, 2003, 12:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Sparks, NV, USA.
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

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.


John R Lick
JohnRLick@hotmail.com
Reply With Quote
  #5 (permalink)  
Old October 23rd, 2003, 02:52 PM
Friend of Wrox
 
Join Date: Aug 2003
Location: , , .
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Yehuda
Reply With Quote
  #6 (permalink)  
Old October 23rd, 2003, 04:07 PM
Authorized User
 
Join Date: Aug 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Mark Phillips

Reply With Quote
  #7 (permalink)  
Old October 24th, 2003, 03:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Regards
Owain Williams
Reply With Quote
  #8 (permalink)  
Old November 3rd, 2003, 06:45 AM
Authorized User
 
Join Date: Jun 2003
Location: Lisbon, , Portugal.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

LeadTools has a command line version and it solved the problem (and it's free...). Thanks to you all! You were all great!



Elisa Resina
Reply With Quote
  #9 (permalink)  
Old December 23rd, 2004, 07:27 PM
Registered User
 
Join Date: Dec 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anybody has a sample code that does this. we are using leadtools eval software and would want to know more in detail. Which is the com/dll we need to use and what are the methods.

Thanks,
Bharani


Reply With Quote
  #10 (permalink)  
Old January 3rd, 2005, 02:37 PM
Registered User
 
Join Date: Dec 2004
Location: Milano, , Italy.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Peppiniello
Default

Hi Elisa,
do you need a VB code to convert JPG to TIFFs ?
If so, i should have the code somewhere, and if you'r still interested i can start searching for it...
Greetings from Milan!

Peppiniello
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert .bmp to .jpg DearNeel Beginning VB 6 3 October 17th, 2014 07:17 AM
Converter TIFF to JPG jihhorng Pro VB 6 2 January 22nd, 2014 02:21 AM
Convert pdf to tiff girip2p C# 3 December 18th, 2013 09:58 PM
Convert PDF to JPG harpua PHP How-To 1 September 17th, 2007 06:04 AM
Convert PDF to Tiff in code hexOffender Pro VB.NET 2002/2003 1 January 30th, 2007 03:16 PM



All times are GMT -4. The time now is 02:17 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.