On Sat, 6 Feb 1999, Alexander Larsson told this:
> The image stuff doesn't work for me. As soon as i specify a filename
> and press apply it crashes. I committed it anyway, so we have some
> code to discuss about.
Thanks.
Hmmm... it might be you have an old imlib? I use 1.9.1, so I don't know if
any of the features I use are new.
> I have put up the image stuff a long time because there are lots of
> design decisions to be taken with them. I'm not 100% satisfied with
> your design. Lets have some discussion. Here are some thoughts:
Indeed, it's just a first try. But I think it's close to what we want.
BTW, there is a bug in postscript output: The pictures are upside-down.
I will look at a fix.
> 1. While imlib is very easy to use for the programmer it is not as easy
> to use for the user. It creates very large dependencies to stuff that
> not everyone has. And not everyone have imlib either. On the other hand,
> having to do your own loading of images is a royal pain in the ass, so
> we might have to run with it.
It actually only depends on gtk, which we have already. Making our own
library would just be duplicate effort and introducing bugs.
> 2. The way saving is currently done creates some problems. As only the
> filename is included you need to know all files that are included in
> the diagram when copying it. On the other hand, storing images in the
> xml file takes a lot of place and is not exactly 'nice' as it must be
> ascii encoded.
That's what I thought, too. Maybe it could be a saving option? In most
cases, you'd only want to save the filenames, but when distributing, you
would want it all in there.
> 3. The image objects has a lot of options that i feel are pretty
> unnessesary. One (background color) isn't even used, what i could see.
Yes, the background color is an artifact from when I tried to use Box as a
superclass for Image. It must be possible to choose whether to keep the
aspect ratio or not, but that might be shift-drag... You want all the rest
to make a border.
-Lars
--
Lars R. Clausen ([EMAIL PROTECTED])
A *real* smart bomb would call in sick, perhaps move to another country,
changing its name in the process, open a beach bar maybe and live out its
days in safe anonymity. -- Barry O'Neill in rhod