Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#12 Additional Tiff-Tag "TIFFTAG_SUBFILETYPE"

closed-rejected
None
5
2009-08-31
2007-11-15
Anonymous
No

Additional TIFF-Tag (TIFFTAG_SUBFILETYPE) for storing files in the fax-format to meet the specification shown at:

http://palimpsest.stanford.edu/bytopic/imaging/std/tiff-f.html

Discussion

  • Additional TIFF-Tag (TIFFTAG_SUBFILETYPE)

     
    Attachments
    • assigned_to: nobody --> bfriesen
     
  • Logged In: YES
    user_id=128624
    Originator: NO

    Using 'NewSubFileType = 2' is not always appropriate. The current code (as released in 1.1.10) uses this logic:

    {
    /*
    Page and Page number tags. Page is the current page number
    (0 based) and pages is the total number of pages.*/

    uint16
    page,
    pages;

    page=(uint16) scene;
    pages=GetImageListLength(image);

    if (image_info->adjoin && pages > 1)
    {
    /* SubFileType = 2. LONG. The value 2 identifies a single page of a multi-page image. */
    (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_PAGE);
    }

    (void) TIFFSetField(tiff,TIFFTAG_PAGENUMBER,page,pages);
    }

    This logic only claims that the image frame is part of a set if the pages are provided in the form of an image list.
    Since GraphicsMagick is not able to accurately guess the correct value of this parameter, should it be explicitly set by the user?

     
  • Specification referred to is not the standard. GraphicsMagick is doing what it reasonably can.

     
    • status: open --> closed-rejected