Solved

Convert CCITT G3 Facsmile TIFF to JPEG or GIF

Posted on 1997-05-29
6
529 Views
Last Modified: 2013-11-19
I need a source (C or C++) to convert a CCITT G3 facsmile TIFF to either GIF or JPEG !

In fact I need this:
I have a buffer in memory where the CCITT G3 Facsmile TIFF
is loaded. Now I want to call a routine where I can
pass the address of the buffer and a pointer to another
buffer where I get back the GIF or JPEG !

Example:
void Convert2JPEG (void *TIFFBuffer, void **JPEGBuffer)
{ ...
}

I only want to use one function/method - nothing else.
Please do not answer "here is the source" and I will find
hundred of functions with no documentation.


0
Comment
Question by:Moosheimer
6 Comments
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1163739
I'm afraid such source would be more than just one function/method !!!

I have code for a library for handling TIFF files - it is 600KB of source.

I have a similar library for JPEGwhich is 1MB

Neither format is trivial !!!

If you're using Win32/MFC I'd suggest you get something like ObjectiveToolkit which has good support for various graphic formats.

0
 
LVL 4

Expert Comment

by:nils pipenbrinck
ID: 1163740
Would it be ok for you if I would send you some code to convert a G3 FAX image into a BMP? I don't have any GIF writer and JPEG is not the format you want to use for 1 bit images!

I would take use of a library and give you the URL where you can download the library..

Nils
0
 
LVL 2

Expert Comment

by:The Master
ID: 1163741
Please go to your local library or bookstore and try to get access to the book "Encyclopedia of Graphics File Formats".  It has the file formats of almost 100 different graphics file types.  Many of the specification documents are straight from the vendors themselves.  It has the file formats for TIFF, GIF, and JPEG, among many, many others.

I bought it at a bookstore for about $65 and it's been worth every penny.  Definitely one of the top 3 reference books in my library!

Good luck!
0
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 4

Expert Comment

by:nils pipenbrinck
ID: 1163742
I guess a book which describes the fileformats won't help. The TIFF format is very difficult to master and the FAX Group compressions are also hard to implement.

0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1163743
Buy Objective Toolkit from Stingsoft (www.stingsoft.com) . It directly support both reading and writing of various formats including TIFF, GIF, JPG etc etc,  This toolkit is well worth the investment as it provides many nice user-interface and utility functions/classes.

0
 
LVL 1

Accepted Solution

by:
ramshank earned 400 total points
ID: 1163744
There are standard imaging libraries available,which will solve your problem. Accusoft has a good  product ImageGear that does a lot of imaging operations including the one which you requested. For more Details contact
GearTech@accusoft.com
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PDF library for Delphi 2 121
c++ getting the first 10 characters of a char* string 11 93
AutoCad licenses 9 71
Android development question 2 37
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Learn how to download your full Prezi presentation for offline presenting. Prezi doesn’t have to be viewed and shared in a web browser, even with a free account you can download your full presentation to share with others. Be sure to download any vi…

770 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