Well I think someone just emailed a reply to do all your processing before you 
out text or
something along those lines.

I'm curious how you are outputting you thumb images. If you are using this 
newly found
script/package to build thumbnails on the fly and trying to place the image in 
line to you
PHP/HTML page my best advice is don't. For a couple of reasons. The overhead 
processing of taking
a large image and generating a thumbnail is time consuming meaning the person 
who just navigated
to your site has to wait until this action is performed before seeing the 
content. Second you will
read all kinds of emails about mime type and how you have to send the right 
mine type definition
in the header. This by the way is another suspicion on why I think you are 
getting errors. You are
trying to send a new header just before the location of the thumbnail and a 
header had already
been generated.


Suggestions. Create an admin page that will allow you to upload the large image 
and at that time
generate a thumbnail version. The standing convention is to just append 
'_thumb' to the image
filename. So in the case where your image filename is 'someimage.jpg'. The 
thumbnail version
filename would be 'someimage_thumb.jpg'.

How does this make your development easier? Simply the thumb image is already 
generated and on
disk. So no more processing while the user waits. Second you can display your 
image in a normal
HTML image tag <img src="path to your thumb image> fashion.


Anyway I may just be way off base in my assumptions about your processing. But 
I've at least tried
to provide some details on a suggestions. Something other than a single 
sentence reply.

Cheers,


P-


--- Michael Sullivan <[EMAIL PROTECTED]> wrote:

> I found a script for creating thumbnails that I can use for the index of
> my digital photo website.  I've integrated the thumbnail script as a
> function but I'm running into a problem:  My thumbnails created
> on-the-fly won't display because I have print statements earlier in the
> script. I get this error:
> 
> Warning: Cannot modify header information - headers already sent by
> (output started at /home/michael/webspace/html/camera/directory.php:5)
> in /home/michael/webspace/html/camera/directory.php on line 116
> 
> and then a bunch of gibberish characters that look to me like an attempt
> to translate binary data into ASCII characters.  Is there a way I can
> make my text and thumbnails get along? 
> 
>



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to