"Lars R. Clausen" <[EMAIL PROTECTED]> writes:
> On Sat, 6 Feb 1999, Alexander Larsson outgrape:
>
> > On 6 Feb, Lars R. Clausen wrote:
> >> It actually only depends on gtk, which we have already. Making our own
> >> library would just be duplicate effort and introducing bugs.
> > Well, to be usable it depends on libpng, libtiff, libjpeg, zlib,
> > ImageMagick, libungif. These are libraries that exists in most linux
> > distributions, but they rarely exists in commercial unixes like
> > Solaris or AIX. They can of course be downloaded and compiled, but
> > that takes a lot of time and space, and you might only have some 5 or
> > 10 Meg quota on you home-dir and no root-access.
>
> But we already depend on gtk, which is way larger and not generally
> installed either. But I guess we could make pictures optional and just
> leave out the button if they're not compiled in.
>
Yes, dia depends on gtk+. However, the libs that gtk+ depend on _are_
typically available on commercial Unixes. ImLib, on the other hand,
has dependencies that would require the user to get still more
libraries (as mentioned above). Plus, ImLib (while being programmer
friendly) is fairly fat and slow in terms of image handling.
For simple image loading, scaling, and gradients I know of another
library that is fast, small, and doesn't have any odd dependencies. I
work on the devel team of the AfterStep window manager. We started
with ImLib for the above mentioned functions. We got complaints on
portability, so ended up writing the libasimage library to handle what
we needed. It is fairly simple and has few dependancies (libXpm,
LibJpeg and LibPNG). Without those dependencies the lib can still do
image scaling and gradients. Also, libasimage is small enough to be
installed in user disk space.
You can get it from ftp.afterstep.org. I am not sure if it comes
packages seperately or not from the actual window manager. But if you
are interested, I can make a standalone distribution of the library.
--
(__) Doug Alcorn
oo / [EMAIL PROTECTED]
|_/ [EMAIL PROTECTED]