Rotated pix
- From: "ctclibby" <hogger@xxxxxxxxxxxxx>
- Date: 31 May 2006 12:40:14 -0700
Hi
I'll try again.
How do I tell php the difference between a rotated original and a
original original? I mean, is there something embeded in the image
telling the orientation?
Say I have a image that is 640x480 and was taken with the camera on its
side instead of normal. This makes the resulting image 90 degrees
rotated from normal. When you rotate the image and save, it looks
okiedokie. Here is the problem: When you create a thumbnail from the
rotated image, the thumbnail as 'enlongated' stuff in the image as if
you 'stretched' the image.
I get image stuff using php's:
list($width,$height,$type,$attribute) = getimagesize(
$FilePath/name.jpg) function and then determine what the image size is
( 640x480 = portrait, 480x640 would be landscape ) then create a
thumbnail accordingly ( 640x480 -> 128x92 , 480x640 -> 92x128 ).
ideas?
thanks
.
- Prev by Date: Re: Image resize problems
- Next by Date: Re: Excel export problem
- Previous by thread: Image resize problems
- Index(es):
Relevant Pages
|