Date: Sat, 15 Sep 2001 12:34:44 -0700
Reply-To: "Karsten M. Self" <kmself@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Karsten M. Self" <kmself@IX.NETCOM.COM>
Subject: Re: Using SAS to convert TIFF to JPG/GIF
In-Reply-To: <79A739F5800AD411B65E00D0B741D3B102644DC5@currency.agouron.com>;
from ya.huang@PFIZER.COM on Fri, Sep 14, 2001 at 09:22:09AM -0700
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
on Fri, Sep 14, 2001 at 09:22:09AM -0700, Huang, Ya (ya.huang@PFIZER.COM) wrote:
> > -----Original Message-----
> > From: Gregg P. Snell [mailto:gsnell@datasavantconsulting.com]
>
> > Sent: Friday, September 14, 2001 6:57 AM
> > To: SAS-L@LISTSERV.UGA.EDU
> > Subject: Using SAS to convert TIFF to JPG/GIF
> >
> >
> > Dear SAS-L,
> >
> > I am creating an application that will need to convert a TIFF
> > file to either
> > GIF or JPG before pushing it to a browser. The code will be
> > running on
> > Solaris Unix. I know there are utilities out there to do this but the
> > client is reluctant to bring them in house. And I've already
> > told them "SAS
> > can do it" based upon a 30-second search of the OnlineDOC.
> >
> > So....
> >
> > I have found that from a SAS/GRAPH window I can interactively
> > import a TIFF
> > file, but apparently not programmatically??
> >
> > There also appears to be a read/write capability in AF with
> > the "Image Data
> > Model Class", but I am struggling with this as 1) this won't be an AF
> > application and 2) it's been years since I used AF.
> >
> > Any suggestions, hints, and tips would be greatly appreciated.
>
> Imagemagick seems to be an option.
Indeed it is.
> According to its website, it can do image conversion "directly from
> the command line using the ImageMagick tools convert". It is 'totally
> free' based on my understanding to its copyright message.
> http://www.imagemagick.org
The 'mogrify' utility can perform a number of programmatic transforms on
images, including type conversions, rescaling, rotation, cropping,
antialiasing, blurring (and a number of other image effects). It's a
command line utility, and a very convenient way for applying standard
(or repetitive) conversions to large numbers of images.
> I tried to download binary version for Solaris, for some reason it
> failed to do the conversion, error message pointed to a lib file. My
> guts feeling tell me there might be some setup issue.
Most GNU/Linux distributions, in particular Debian, make compatibility
of software to systems issues far more trivial than proprietary Unices
or legacy MS Windows. The general alternative is to build and install
yourself from sources.
> You may try to download the source code and compile it by yourself. I
> used gunzip to unzip the *.gz file, then use tar -vxf to extract the
> file, maybe I missed something here? It will be very interesting to
> see if you can make it work. If you want to try and suceed, please
> share your experience with me. regards,
Works for me under Debian/Woody and Debian/Sid.
Peace.
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
Praying for the victims.
[application/pgp-signature]
|