Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8422931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:35:33+00:00 2026-06-10T03:35:33+00:00

I need to create a b/w, g4-compressed multipage tiff from some b/w singlepage tiff-files.

  • 0

I need to create a b/w, g4-compressed multipage tiff from some b/w singlepage tiff-files.
The offset of the first directory needs to be 8.

I’m able to create the multipage tiff, but the offset of the first directory is always greater than 8.

I’ve some sample tiff files that have a directory offset of 8 for the first directory. So it seems to be possible, but I have no idea how to do this with libtiff.net.

I’ve also a piece of code using gdi+ for creating the tiff, that also has offset = 8, but gdi+ has some limitations and I can’t use it.

Can I do this with libtiff.net or are there other tiff libaries out there to do this?

Thanks
Tobias

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:35:35+00:00Added an answer on June 10, 2026 at 3:35 am

    It’s definitely possible with LibTiff.Net.

    In order to get directory be placed before raster data you should use CheckpointDirectory method.

    Your code should look something like this:

    using (Tiff tif = Tiff.Open("multipage.tif", "w"))
    {
       //...
       tif.SetField(..);
       //...
       tif.SetField(..);
       tif.CheckpointDirectory();
    
       //...
       tif.WriteScanline(..);
       //...
    }
    

    Of course, you are not limited to using WriteScanline method. Any other method that writes raster data will do too. The key point is to call CheckpointDirectory method first.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create some software which works with ZIP archives compressed with very
I need a solution that allows me to create compressed data files (gzip, zip.
I need to create an uncompressed avi from a compressed video (.mpg). How do
I need create clone repository. but I do not know where can I get
I need to pre-compress some very large html/xml/json files (large data dumps) using either
I have some GZ compressed resources in my program and I need to be
I have a directory tree in which there are some files and some subdirectories.
How to generate compressed files on request. I have this controller def create send_data
I need to delete a page from a multipaged TIFF file. I am currently
I need to import multiple csv files, compressed in a zipped folder. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.