Re: basic image question
Posted: 2006-02-14T16:44:31-07:00
imguser wrote: hello,
whenever i got a image from webcam its having always width x height format with why width always>height???
Because that is what the web camera is generating. Even if the camera is rotated, the camare may note that it was rotates in EXIF meta data stored in the image, but the camera itself still sees the image in landscape (width>height) mode.
also how can i change image from 160x120 to 120x160 mogrify command never accepted my conversion why???
Rotate it.
mogrify -rotate -90 camera.jpg
WARNING: if your camera produces JPEG, do not you mogrify as JPG is a lossy format, and any load and save to this format reduces image quality (even at 100%). Always preserve the original unroated image if you have any chance you will need it again.
ASIDE: the 'jpegtrans' program that comes with the JPEG library can rotate a JPEG image without quality loss. For more JPEG details see
http://www.cit.gu.edu.au/~anthony/graph ... rmats/#jpg
You may also want to test if the image contains EXIF data, so you only rotate it if you need to.
and what i have to do to get image which have height> width??
Rotate it. See above.