Path: news.mathworks.com!not-for-mail
From: Steve Eddins <Steve.Eddins@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: reading gif
Date: Tue, 06 May 2008 09:41:42 -0400
Organization: The MathWorks, Inc.
Lines: 36
Message-ID: <fvpn6m$rt6$1@fred.mathworks.com>
References: <fvl2ih$khs$1@fred.mathworks.com> <fvn2qd$rpv$1@fred.mathworks.com> <fvplf3$4ln$1@fred.mathworks.com>
NNTP-Posting-Host: eddinss-lt.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1210081302 28582 172.31.57.98 (6 May 2008 13:41:42 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 6 May 2008 13:41:42 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
In-Reply-To: <fvplf3$4ln$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:466912


Robert Johansson wrote:
> The matrix that I get from imread (and importdata) is of 
> size 87x87, that is not even close to what is needed to get 
> a correct version of the picture. I know what the picture 
> should look like. This is the file info:
> 
>            FileSize: 3464
>              Format: 'GIF'
>       FormatVersion: '89a'
>               Width: 87
>              Height: 87
>            BitDepth: 8
>           ColorType: 'indexed'
>     FormatSignature: 'GIF89a'
>     BackgroundColor: 0
>         AspectRatio: 0
>          ColorTable: [256x3 double]
>          Interlaced: 'no'
> 
> If I examine the file properties by right-clicking on it, 
> the system tells me that the size is given in "points" 
> (87x87). Its a picture of a logo which i want to use in 
> LaTeX so my idea was to convert it to eps with MATLAB.
> 
> /Robert

Sounds to me like you have a GIF file containing 87 rows and 87 pixels, 
and this is what imread is giving you.  It also sounds to me like the 
Windows file properties dialog is confirming this for you.

Try reading the image file using some other application if you still 
have doubts.

Where is your notion of "correct version of the picture" coming from?

Steve