On Thu, Mar 03, 2005 at 07:08:03AM +0200, [EMAIL PROTECTED] wrote:
> On Wed, Mar 02, 2005 at 11:32:01PM +0200, Diego Iastrubni wrote:
> > David Harel wrote:
> > 
> > >Hi all,
> > >
> > >You are my last resort but knowing this group I have high expectations.
> > >trying to manipulate tiff images from my code I was advised to use 
> > >ImageMagic libraries but even the display command gave me an error 
> > >message:
> > >display: no decode delegate for this image format `spl492.tif'.
> ..
> > >
> > >  1. Find image size (x, y)
> > >
> > file + awk/perl
> ..
> How do you get the image size using find ?
> On my box I get:
> [EMAIL PROTECTED]:~$ file /gate/science/data/tifs/20050222/a11.tif 
> /gate/science/data/tifs/20050222/a11.tif: TIFF image data, little-endian

I figure not all formats keep the size close enough to the beginning.

$ file /usr/share/WindowMaker/Icons/wilber.*
/usr/share/WindowMaker/Icons/wilber.tiff: TIFF image data, little-endian
/usr/share/WindowMaker/Icons/wilber.xpm:  X pixmap image text
$ file /usr/share/WindowMaker/Icons/GreenWilber.png 
/usr/share/WindowMaker/Icons/GreenWilber.png: PNG image data, 64 x 64,
8-bit/color RGBA, non-interlaced


> I guess you meant some other command...which one?

$ identify /usr/share/WindowMaker/Icons/wilber.*
/usr/share/WindowMaker/Icons/wilber.tiff TIFF 48x48 DirectClass 6kb 0.000u 0:01
/usr/share/WindowMaker/Icons/wilber.xpm[1] XPM 48x48 PseudoClass 210c 9kb 
0.040u 0:01

'identify' is part of ImageMagick

-- 
Tzafrir Cohen         | New signature for new address and  |  VIM is
http://tzafrir.org.il | new homepage                       | a Mutt's  
[EMAIL PROTECTED] |                                    |  best
ICQ# 16849755         | Space reserved for other protocols | friend

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to