Re: Image_Resize patches (2/2)
| From: | Brent Cook | Date: | Thu, 05 Sep 2002 03:28:12 +0000 |
| Subject: | Re: Image_Resize patches (2/2) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8847@lists.php.net to get a copy of this message | ||
On Wed, 4 Sep 2002, Pierre-Alain Joye wrote:
> On Wed, 4 Sep 2002 14:11:19 -0500 (CDT)
> Brent Cook <busterb@mail.utexas.edu> wrote:
>
> > Peter,
> >
> > This is a patch to correct a few issues with the NetPBM module. There
> > does not appear to be a 'pnmtogif' utility in NetPBM (I tested with v
> > 10.8). This patch changes the logic to use to 'ppmtogif' utility. Again, I
> > can apply this if you like.
>
> Btw, can you test addText with netPBM, with my system, the text is
> drawed always in horizontal center.
>
That's because the -x and -y arguments need to come before the text with
ppmlabel, e.g:
ppmlabel -x 20 -y 50 -text "Hello"
If they are placed after -text, then the coordinates apply to the _next_
-text tag, such as:
ppmlabel -text "Center-Left" -x 20 -y 50 -text "Upper-Left"
Also, the -y coordinate refers to the bottom line that the text lies on.
If Image_Transform operates on the 'coordinates indicate upper-left corner
of the object' paradigm, then it needs to account for this. I've committed
the initial change in parameter order.
Is it alright if I add a gamma() function too?
- Brent