convert multipage tif image into seperate files


    Sponsored Links


  • 1. HSL (Hue Sat. Lumin.) - Why so different results?
    Hallo, I'm trying to covert the RGB color to the HSL color. ----------------- In example, I have RGB(63,124,81) : Commdlg32.ocx gives HSL 92 78 88 (******) MicroAngelo (icon editor) gives HSL 92 78 88 (******) PaintShopPro 7 gives HSL 98 83 94 (!!!!!!!) a snippet of an amateur developer I found on the web gives HSL 98 83 94 (!!!!!!) another snippet I found gives HSL 91 78 88 (similar to ******) another one gives strange values (I don't remember them exactly, but a couple of them were decimal) like HSL 147 0.456 0.987 How about Adope PhotoShop (I don't have it)? ------------ Now, why so differet values? The rgb to hsl conversion isn't a pure math formula, so to always an unique exact result ? Which of the results given above is the exact one? Why PSP is so different than coomdlg32.ocx ???? ----------- Finally, I'm confused and stronly need the code that surely performs the exact (or the most exact) conversion (that I think is the one performed by the commdlg32.ocx); have you a suggestion where may I find it? ---------------- Thanks
  • 2. OpenGL - Screen Control
    My application uses OpenGL to draw lines constructed from X/Y/Z data to a form. Should I be using glscale; gltranslate to move the image about the screen and increase/degrease its viewable size or does OpenGL support other tools for this job. I would like to perform a mouse down followed by a mouse move and see the graphics move on screen in real time, is this possible?? Thanks in advance Mike
  • 3. Click on a picture , identifies mouse position ......
    I have a book with a lot of guitar chord diagrams . These comprise a six by five ' frame ' with little black dots set onto them ( the notes to be played ) . I want to grab the information , and , at the same time , convert the dots to either scale degrees or note names . By hand , with book and jotter , this is a horrible labour ! My plan is to scan the page with all the diagrams on it . Next , I'll need to write a program that imports the scan . I can use the mouse elastic band to line up each diagram . Then simply mouse click on each black dot , within that 'frame' . I've done a lot of VBA programming for Access and Excel . But I don't know which book / resource I'll need for my simple graphic project . Can I get the info I'll need from web sites ? Most books run off into 3D and rendering etc .. , none of which I'll need . Pointers please . Thanks Chris
  • 4. Click on a picture , identifies mouse position ......
    How about a compromise approach - easier to program and yet saving work from typing each note Have simple program with a bunch of vertically aligned checkboxes, and option button and a Next button Read a note ( or chord ) by looking at the book and then check the checkboxes for the desired note, and option button to specify duration ( whole note, half, quarter, eight, etc ). Hit next button when that note or chord is complete. Now no typing, just click the same number of times you would have if you had scanned in the page, but you don't have to bother with scanning and with setting up alignment or calibration of scanned page to note scale. The project can be done in Access or Excel VBA if you don't have some edition of Visual basic, but if you do much VB coding you'll find that VB itself ( rather than VBA ) is much nicer development environment. I hope this is helpful * * Please include a copy of this message with your reply Jeff Bennett XXXX@XXXXX.COM * Bennet-Tec Information Systems, Inc * 50 Jericho Tpk, Jericho, NY 11753 * Phone 516 997 5596, Fax - 5597 * RELIABLE Components Make You Look Sharp! * TList/Pro * ALLText HT/Pro * MetaDraw * * Custom Software Development Services Too. * WWW.Bennet-Tec.Com =================== ===================

convert multipage tif image into seperate files

Postby VG9tIEY » Wed, 12 Jan 2005 09:33:02 GMT

I am looking to scan a large amout of documents. I believe I will end up with 
a bunch of documents that contain 30-50 pages. They will come from the 
scanner as  large tif files. I would like to break them up into a tif file 
for each page. I'm pretty good with VB and would like to use it to automate 
this task if possible. I looked on google and can't find anything. I'm sure 
it's out there but I think I'm not picking good key words. Can someone give 
me a hint on that?


RE: convert multipage tif image into seperate files

Postby VG9tIEY » Thu, 13 Jan 2005 06:37:01 GMT

I figured it out. It isn't very elegent though. I basically open the tif 
using the MODICtl that is available if you have office 2003 installed. Then I 
systemitacally delete every image on the page except for one and then save 
that as that page#.tif. In case you hadn't figured it out, all the pages I've 
scanned have the page # listed on the bottom. That makes them be the last 
word on the document. Below is a snippet of code that may be useful to 

Set miDoc = New MODICtl.Document
 Dim breakUp, m, n, pre, post
 numberofPagesButton = True
 For n = 0 To numberofPages - 1
     miDoc.Create "C:\01.tif"
          For pre = 0 To n - 1
          miDoc.Images.Remove miDoc.Images(0)
          Next pre
          numberofPages = miDoc.Images.Count
          For post = 1 To numberofPages - 1
          miDoc.Images.Remove miDoc.Images(1)
          Next post
          ' miLayout.NumWords  miLayout.Words(0).Text
        Set miLayout = miDoc.Images(0).Layout
        miDoc.SaveAs "C:\" & miLayout.Words(miLayout.NumWords - 1).Text & 

    Next n
Set miDoc = Nothing

Similar Threads:

1.GDI+ Imaging: multipage TIF

Is there a way to page through a multipage TIF when using 
the bmp.fromfile() and gr.drawimage() techniques?

2.Setting the compression when creating the multipage Tif files in

I was successful in creating the multipage Tif files in using
the following the following code:

   Public Sub SaveSeveralOnePageFilesInADir(ByVal DrNm As String, ByVal

resultFl As String)

        Dim pages As Bitmap = Nothing
        Dim PgCnt As Integer
        Dim ix As Integer

        Dim fl As String

        If Dir$(resultFl) <> "" Then
        End If


        Dim enc As System.Drawing.Imaging.Encoder =

                Dim info As System.Drawing.Imaging.ImageCodecInfo =

        For Each ice As System.Drawing.Imaging.ImageCodecInfo In

            If ice.MimeType = "image/tiff" Then

                info = ice

            End If


                Dim ep As System.Drawing.Imaging.EncoderParameters =
New System.Drawing.Imaging.EncoderParameters(1)

        fl = Dir$(DrNm + "\*.*", FileAttribute.Normal +
        ix = 0
        Do While fl <> ""
            fl = UCase$(fl)
            If InStr(fl, ".JPG") <> 0 Or InStr(fl, ".GIF") <> 0 Then
                ix = ix + 1
                fl = DrNm + "\" + fl
                If ix = 1 Then

                    ep.Param(0) = New
CType(System.Drawing.Imaging.EncoderValue.MultiFrame, Long))

                    pages = Image.FromFile(fl)
                    pages.Save(resultFl, info, ep)
                                        ep.Param(0) = New
CType(System.Drawing.Imaging.EncoderValue.FrameDimensionPage, Long))

                    Dim bm As Bitmap = Image.FromFile(fl)
                    pages.SaveAdd(bm, ep)
                End If
            End If
            fl = Dir$()

               ep.Param(0) = New
CType(System.Drawing.Imaging.EncoderValue.Flush, Long))


    End Sub

My big problem now is that I was not able to find information on how I
also set the compression that I need for the pages of those multipage
files. For example, for the black and white images in a multipage Tiff
the compression should be CCITT4, and, for the color images in a
Tif file, the compression should be JPEG medium compression with the
resolution. How can it be accomplished?

Thank you very much. 

Irene S.

3.Convert image tif to bmp

4.Using MODI to convert multi-page tif to single page tif

I have thousands of multipage tif images in many subdirectories that I need 
to convert into single page tifs.  I have vba code to do this (written in MS 
Access) that loops thru the directory tree and I can access info about the 
tifs using MODI.  What I'm looking to do now is convert/save the existing 
multiple page tif to a series of single page tifs so they can be imported 
into our image repository.  Anyone know how to do this?  For example, if the 
current multiple page tif is six pages is would create six single page tifs 
(e.g. sample1_page1.tif,sample1_page2.tif,...


5.Convert multiple .rtf files to .tif files

I have a whole bunch of .rtf files that I want to convert to .tif
files for archiving purposes.

Is it possible to "convert" each of the .rtf files to .tif files using
the Microsoft Office Document Image Writer without opening up an
instance of MS Word? I'd like to do a "background" conversion (because
there are so many files).

The user would launch the application and select the source directory
where all the .rtf files are stored. Then the user clicks a "Convert"
button and the files in the directory that the user specifies are
converted to .tiff in the background.

Can this be done, or do I have to use an instance of MS Word in the

6. join two tif files to one tif file

7. using Xsane to convert multipage document to single pdf file

8. Problem with ImageMigick Convert and a multipage pdf file

Return to graphics


Who is online

Users browsing this forum: No registered users and 0 guest