Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Thumbnail data format in ai file
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
paul_a_george  
View profile  
 More options Dec 5 2003, 12:38 pm
Newsgroups: adobe.illustrator.windows
From: Paul_A_Geo...@adobeforums.com
Date: Fri, 5 Dec 2003 09:08:42 -0800
Local: Fri, Dec 5 2003 12:08 pm
Subject: Re: Thumbnail data format in ai file
First a disclaimer... we make no guarantees that the thumbnail format will not change in future versions. Also, the following information was obtained by reading the code. It has not been tested to verify its accuracy.

The format of the thumbnail is:

%AI7_Thumbnail: width height bitsperpixel
%%BeginData: hexdigitcount Hex Bytes
color table data
image data

Both the color table and image data are ASCII Hex encoded. Each line of data is preceded by a '%' character to make them comments as far as
PostScript is concerned.

The color table is present only if bitsperpixel is 8 (I think this is the usual case but the code does appear to also support 24 bit data). The color table consists of 256 RGB triples. Each triple consists of three bytes in the order R, G, B.

The image data may or may not be RLE compressed. It is RLE compressed if the first three bytes are 'R', 'L', 'E'. Otherwise it is not RLE compressed.

The following algorithm decompresses the RLE data:

let b = next input byte
if (b != 0xFD)
    copy b to the output
else
    let b = next input byte
    if (b == 0xFD)
        copy b to the output
    else
        let n = b
        let b = next input byte
        copy b to the output n times
    endif
endif


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.