Beatnik has asked for the wisdom of the Perl Monks concerning the following question:

Hey peeps,
I'm having a bit of an issue... I just finished a very dirty version of a gd (not GD based package (using XS. Now I dont currently plan support for GD type data (like passing GD objects or GD::Image objects). Anyway, I intend to call the module GD::Image::Filter::Blur. This can somehow be confusing. My question now is :
  1. Would that be ok?
  2. If not, how would you call it?
BTW I have a few other filters lying around, so Blur wont be lonely for that long :)

Greetz
Beatnik
...Perl is like sex: if you're doing it wrong, there's no fun to it.

Replies are listed 'Best First'.
Re: GD/gd Namespace issue
by Aristotle (Chancellor) on Jun 22, 2002 at 16:02 UTC

    That would be confusing.

    If you don't like Image::, maybe GDLib:: would do. It would still be somewhat confusing, but at least it would indicate that there are two distinctily different things there.

    Makeshifts last the longest.

      Well, I'm not sure if they will be 2 different things... I've written a very basic module and I dont plan to release anything until I have something more solid and abstract. Since I'm using gd, chances are I base some code on GD or I provide some functionality of gd itself too...
      My point being that I'm not using GD but gd and somehow it's similar :) I'll just wait how this thread evolves and hopefully release some nice stuff :)

      Greetz
      Beatnik
      ...Perl is like sex: if you're doing it wrong, there's no fun to it.
Re: GD/gd Namespace issue
by Anonymous Monk on Jun 22, 2002 at 03:42 UTC
    No, that would not be ok.

    What kind of input does this thing support?

    I suggest Image::Filter::Blur or Image::*Format*::Filter::Blur, where *Format* is something like PNG. I'd pick the 2nd one only if your package only support's PNG's (or if you can separate it like that).

      Since it uses gd (like the lib GD uses), JPEG, PNG, WBMP etc are supported and I dont intend to separate that code. In fact there is hardly any difference in accessing those formats with gd. Image::Filter has crosses my mind (as I put that on my homenode a few weeks ago when the idea popped in my head). The thing is that I might eventually use GD objects somehow.

      Greetz
      Beatnik
      ...Perl is like sex: if you're doing it wrong, there's no fun to it.