Re: Image Headers break when image is out of bounds
| From: | Ashley Sheridan | Date: | Tue, 11 Aug 2009 18:57:18 +0000 |
| Subject: | Re: Image Headers break when image is out of bounds | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296656@lists.php.net to get a copy of this message | ||
On Tue, 2009-08-11 at 11:54 -0700, Ben Dunlap wrote:
> On Tue, Aug 11, 2009 at 11:52 AM, Ben Dunlap
> <bdunlap@agentintellect.com> wrote:
>
> @Adam
>
> The headers_sent() wasa test to ensure that no other
> data was creeping
> into the headers before I wanted it to. Keeping it in
> does no harm, as
> it is basically saying, if there are no headers that
> have been sent,
> send the correct ones for the image.
>
> But if there are headers that have been sent, it sounds like
> they would not have been the correct ones. Which I think would
> cause exactly the problem you're describing.
>
> Ben
>
>
> Oops, looked back at your earlier post and it sounds like you only
> send the image inside the "if(!headers_sent())" block. Never mind, pls
> disregard my earlier noise.
>
> Ben
Well, this will teach me to pay more attention. Turns out, I was
attempting to output the image before the headers! It was a red herring
that the image was displaying correctly when the drawing commands were
all inside of the image area. It's probably more of a feature of Fx to
try and recognise the content it's been sent if it can?
Thanks,
Ash
http://www.ashleysheridan.co.uk