Rotated pix



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

.



Relevant Pages

  • Re: Why is thumbnail in landscape?
    ... Was the Explorer window open when the picture was rotated? ... used to rotate the picture? ... >>>thumbnail is shown in landscape mode, ...
    (microsoft.public.windowsxp.photos)
  • Unexpected Thumbnail Generation Behavior
    ... I'm enabling users to rotate photos and generate thumbnails. ... generates a thumbnail, that the resulting thumbnail appears unrotated (i.e., ... Repeatedly clicking the button that executes the above code causes the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: right-click menu vanished!
    ... Is the Rotate.. ... Have you set the folder view to Thumbnail?? ... What's the file type involved??? ... MS Picture It! ...
    (microsoft.public.windowsxp.photos)
  • Rotating Images In Folders
    ... When I open a folder of jpeg's in "thumbnail" view and I want to ... rotate an image either by right clicking or using the FILE/ROTATE ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Image orientation changes
    ... I don't want to use FLASH (it's a bit of ... overkill just to rotate one image) but I have found a php snippet that ... might work or apparently for IE only there is a rotate property on the ... different screen (if the php doesn;t work) ...
    (alt.html)