Discussion:
re sizing a portrait jpeg's width
AngeloChen
2011-08-14 23:47:58 UTC
Permalink
Hi,

I have a jpeg of 3456 × 5184, using OS X preview to resize its width to 800,
I got a jpeg with 800 × 1200.
now if I run this command:

convert sample.jpg -resize 800x test.jpg

I got 533 × 800

my ImageMagick is ImageMagick 6.7.1-5.

I have to run :

convert sample.jpg -resize x800 test.jpg
this will give me a 800x1200

I thought to specify the width it is 800x, x800 is to specify the height, am
I missing something here? Thanks.
--
View this message in context: http://old.nabble.com/resizing-a-portrait-jpeg%27s-width-tp32259424p32259424.html
Sent from the Magick-users mailing list archive at Nabble.com.
x***@yahoo.co.jp
2011-08-15 03:46:48 UTC
Permalink
Hi,

Does the JPG includes exif orientation tag?
See
http://www.media.mit.edu/pia/Research/deepview/exif.html
"The orientation of the camera relative to the scene, when the image was captured. The start point of stored data is, '1' means upper left, '3' lower right, '6' upper right, '8' lower left, '9' undefined."
See results of
identify -verbose test.jpg

If so, your viewer automatically fix orientation of photos.
--
Atsushi Kato
Hi,
I have a jpeg of 3456?$B!_(B?5184, using OS X preview to resize its width to 800,
I got a jpeg with 800?$B!_(B?1200.
convert sample.jpg -resize 800x test.jpg
I got 533?$B!_(B?800
my ImageMagick is ImageMagick 6.7.1-5.
convert sample.jpg -resize x800 test.jpg
this will give me a 800x1200
I thought to specify the width it is 800x, x800 is to specify the height, am
I missing something here? Thanks.
--
View this message in context: http://old.nabble.com/resizing-a-portrait-jpeg%27s-width-tp32259424p32259424.html
Sent from the Magick-users mailing list archive at Nabble.com.
_______________________________________________
Magick-users mailing list
http://studio.imagemagick.org/mailman/listinfo/magick-users
Anthony Thyssen
2011-08-15 05:14:57 UTC
Permalink
On Mon, 15 Aug 2011 12:46:48 +0900
***@yahoo.co.jp wrote:
| Hi,
|
| Does the JPG includes exif orientation tag?
| See
| http://www.media.mit.edu/pia/Research/deepview/exif.html
| "The orientation of the camera relative to the scene, when the image was captured. The start point of stored data is, '1' means upper left, '3' lower right, '6' upper right, '8' lower left, '9' undefined."
| See results of
| identify -verbose test.jpg
|
| If so, your viewer automatically fix orientation of photos.
|

See IM Examples, Photo Handling, Digital Photo Orientation
http://www.imagemagick.org/Usage/photos/#orient


Anthony Thyssen ( System Programmer ) <***@griffith.edu.au>
--------------------------------------------------------------------------
In the room is: A Huge Fierce Green Dragon
drop bird
With a great flurry of feathers, the little bird gets burnt to a cinder!
Ashes blow away. --- Advent, the first computer adventure
--------------------------------------------------------------------------
Anthony's Castle http://www.ict.griffith.edu.au/anthony/
AngeloChen
2011-08-15 05:30:33 UTC
Permalink
Hi Ant,

you are right, '-auto-orient' does the job. Thanks,

Angelo
Post by Anthony Thyssen
On Mon, 15 Aug 2011 12:46:48 +0900
| Hi,
|
| Does the JPG includes exif orientation tag?
| See
| http://www.media.mit.edu/pia/Research/deepview/exif.html
| "The orientation of the camera relative to the scene, when the image
was captured. The start point of stored data is, '1' means upper left, '3'
lower right, '6' upper right, '8' lower left, '9' undefined."
| See results of
| identify -verbose test.jpg
|
| If so, your viewer automatically fix orientation of photos.
|
See IM Examples, Photo Handling, Digital Photo Orientation
http://www.imagemagick.org/Usage/photos/#orient
--------------------------------------------------------------------------
In the room is: A Huge Fierce Green Dragon
drop bird
With a great flurry of feathers, the little bird gets burnt to a cinder!
Ashes blow away. --- Advent, the first computer adventure
--------------------------------------------------------------------------
Anthony's Castle http://www.ict.griffith.edu.au/anthony/
_______________________________________________
Magick-users mailing list
http://studio.imagemagick.org/mailman/listinfo/magick-users
--
View this message in context: http://old.nabble.com/resizing-a-portrait-jpeg%27s-width-tp32259424p32262252.html
Sent from the Magick-users mailing list archive at Nabble.com.
AngeloChen
2011-08-15 05:08:18 UTC
Permalink
Hi,

Thanks for the reply, orientation looks like an issue here, I listed three
samples, Original, resized by preview and resized by IM below.
my question is, why I can not get a 800 x 1200 with "convert FLOOR.JPG
-resize 800x FLOOR2.JPG", am I missing something here?

Thanks,

Angelo

#1 original:

FLOOR.JPG JPEG 5184x3456 5184x3456+0+0 8-bit DirectClass 4.627MB 0.000u
0:00.000
Class: DirectClass
Geometry: 5184x3456+0+0
Resolution: 72x72
Print size: 72x48
Units: PixelsPerInch
exif:Model: Canon EOS 550D
exif:Orientation: 6

#2 resized using Mac's Preview:
FLOOR_preview.jpg JPEG 800x1200 800x1200+0+0 8-bit DirectClass 200KB 0.000u
0:00.000

Class: DirectClass
Geometry: 800x1200+0+0
Resolution: 72x72
Print size: 11.1111x16.6667
Units: PixelsPerInch
Type: TrueColor
exif:Model: Canon EOS 550D
exif:Orientation: 1
exif:ResolutionUnit: 2


#3 resized with "convert FLOOR.JPG -resize 800x FLOOR2.JPG"
FLOOR2.JPG JPEG 800x533 800x533+0+0 8-bit DirectClass 208KB 0.000u 0:00.000

Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 800x533+0+0
Resolution: 72x72
Print size: 11.1111x7.40278
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: RGB

exif:Model: Canon EOS 550D
exif:Orientation: 6
Post by AngeloChen
Hi,
I have a jpeg of 3456 × 5184, using OS X preview to resize its width to
800, I got a jpeg with 800 × 1200.
convert sample.jpg -resize 800x test.jpg
I got 533 × 800
my ImageMagick is ImageMagick 6.7.1-5.
convert sample.jpg -resize x800 test.jpg
this will give me a 800x1200
I thought to specify the width it is 800x, x800 is to specify the height,
am I missing something here? Thanks.
--
View this message in context: http://old.nabble.com/resizing-a-portrait-jpeg%27s-width-tp32259424p32262187.html
Sent from the Magick-users mailing list archive at Nabble.com.
Continue reading on narkive:
Loading...