PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
header('Content-type: image/jpeg');
$image = new Imagick('image.jpg');
$image->thumbnailImage(100, 0);
echo $image;
This code works fine however I can' have this emedded within a php/html file. Because of calling the "header" I can't have anything else displayed in this file. Is there a way to display an imagick file without calling:
But it'd be a lot better if you could save those thumbnails to the server rather than generate them on-the-fly. Saves bandwidth and processing power - a win-win for everybody.
Thank you very much. I didn't know you could link to a query string in an img tag, it is something I overlooked. This was a much simpler solution then my next step.
On a side note I have been pulling my query string variables out with the $_REQUEST variable rather then the $_GET variable. Is there a reason I should be using $_GET over $_REQUEST? Is that the right way to do it, or is it a matter of apples vs. oranges.