[Phpwm] displaying images on screen

Dave Holmes dave at neteffekt.co.uk
Thu Oct 2 13:45:20 UTC 2008


            //write out the image to the browser
            imagejpeg($destination_image, NULL, 100);


Dave Holmes
Technical Director
dave at neteffekt.co.uk <mailto:dave at neteffekt.co.uk>

*m:* 07966 013 309   *t:*0870 417 7741   *f:*0870 414 7742
*www.neteffekt.co.uk*

...........................................................................................................................................................................................
neteffekt Ltd | 1 Elm Court | Copse Drive | Meriden | Warwickshire | CV5
9RG. Registered in England & Wales: 5053657
...........................................................................................................................................................................................

Disclaimer: This email contains propriety information, some of which may
be legally privileged. It is for the intended recipient only. If an
addressing or transmission in error has misdirected this email, please
notify the author by replying to this email. If you are not the intended
recipient, you must not use, disclose, distribute, copy, print or rely
on this email.



alan dunn wrote:
> This probably has an easy answer, but we haven't found it.
>
> We have an archive of jpeg images. We want to open one using GD library
>
> $im1 = imagecreatefrom jpeg($pathname.$filename);
>
>  rotate it:
>
> $im1 = imagerotate($im1,-90,0);           .... and display it on screen.
>
> How do we get to display the image which is now represented by resource 
> $im1?
> We know you can do it by saving the rotated image back to somewhere then 
> displaying the saved image - but that's a lot of overhead just to show a 
> temporarily rotated image.
>
> Any help much appreciated, thanks, Alan Dunn
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/phpwm/attachments/20081002/9a5ab7d5/attachment.htm 


More information about the Phpwm mailing list