[Phpwm] displaying images on screen

Alex Mace alex at hollytree.co.uk
Thu Oct 2 13:49:09 UTC 2008


Technically you also need to pass this back first

header('Content-type: image/jpeg');

to make sure that the recipient (probably a browser) recognises it as  
an image.

On 2 Oct 2008, at 14:45, Dave Holmes wrote:

>             //write out the image to the browser
>             imagejpeg($destination_image, NULL, 100);
>
>
> Dave Holmes
> Technical Director
> 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
>>
>>
>>
> _______________________________________________
> Phpwm mailing list
> Phpwm at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/phpwm

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/phpwm/attachments/20081002/3b0e2042/attachment.htm 


More information about the Phpwm mailing list