using nconvert with -resize 800 0 1 on *.jpg I get somme files 800 600 but some with 800 1066 because the original picture is vertical.
Normal with thoses options, but I can't find anything to get automaticaly 800 600 or 600 800 depending on the original picture.
Thanks in advance.
convert 600 800 or 800 600
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 44926
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: convert 600 800 or 800 600
You must use -rflag orientmaxteo wrote:using nconvert with -resize 800 0 1 on *.jpg I get somme files 800 600 but some with 800 1066 because the original picture is vertical.
Normal with thoses options, but I can't find anything to get automaticaly 800 600 or 600 800 depending on the original picture.
Thanks in advance.
Pierre.
And that is fine if you actually want the image to be either 800x600 or 600x800, but what do you do when you want the image to have a max height of 600, and max width of 800?
In other words a portrait could very well end up being something like 450x600 (still preserving a 4:3 ratio).
Is this possible in either nconvert or the GUI?
Regards,
Holroy
In other words a portrait could very well end up being something like 450x600 (still preserving a 4:3 ratio).
Is this possible in either nconvert or the GUI?
Regards,
Holroy
-
- Author of XnView
- Posts: 44926
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Do you have tested with rflag?Anonymous wrote:And that is fine if you actually want the image to be either 800x600 or 600x800, but what do you do when you want the image to have a max height of 600, and max width of 800?
In other words a portrait could very well end up being something like 450x600 (still preserving a 4:3 ratio).
Is this possible in either nconvert or the GUI?
Pierre.
-rflag orient
I will try that right now. Thank you for your help and I am
Impréssionné par xnview et nconvert, je ne peux rien dire d'autre que: Félicitation. Je te tire mon chapeau.
Merci à toi.
Impréssionné par xnview et nconvert, je ne peux rien dire d'autre que: Félicitation. Je te tire mon chapeau.
Merci à toi.
doesnt work
Here is the option I use:
nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -n 15 15 1 -rmeta -q 75 -o temp\*.jpg -ratio -rtype linear -rflag orient -resize 0 600 *.jpg
if my picture is horizontal, I get a 800*600
if my picture is vertical, I get a 450*600. I would like a 600*800
I think it's the -resize I put with is wrong, but can't find anything else.
Thanks again for your help.
nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -n 15 15 1 -rmeta -q 75 -o temp\*.jpg -ratio -rtype linear -rflag orient -resize 0 600 *.jpg
if my picture is horizontal, I get a 800*600
if my picture is vertical, I get a 450*600. I would like a 600*800
I think it's the -resize I put with is wrong, but can't find anything else.
Thanks again for your help.
-
- Author of XnView
- Posts: 44926
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: doesnt work
try -resize 800 600maxteo wrote:Here is the option I use:
nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -n 15 15 1 -rmeta -q 75 -o temp\*.jpg -ratio -rtype linear -rflag orient -resize 0 600 *.jpg
if my picture is horizontal, I get a 800*600
if my picture is vertical, I get a 450*600. I would like a 600*800
I think it's the -resize I put with is wrong, but can't find anything else.
Thanks again for your help.
Pierre.
similar problem
I have similar problem here. I'd like to process a set of images and resize them all to 640x480 at most, retain their aspect ratio and also resize them according to their orientation (that means to 640x480 at most when orientation is landscape and 480x640 at most when orientation is portrait). My aim is to process a directory with images with different aspect ratios (3:2 vs 4:3).
I tried to call nconvert like this:
nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o C:\xx\%.jpg -ratio -rtype linear -rflag orient -resize 640 480
but the -ratio and -rflag orient don't seem to work properly when I use them together. Such setting leads to too small images - the longer side is always 480 (or its ratio equivalent) instead of 640. This applies even if I swap the two arguments (-resize 640 480 -> -resize 480 640).
Is there any solution how to do this?
I tried to call nconvert like this:
nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o C:\xx\%.jpg -ratio -rtype linear -rflag orient -resize 640 480
but the -ratio and -rflag orient don't seem to work properly when I use them together. Such setting leads to too small images - the longer side is always 480 (or its ratio equivalent) instead of 640. This applies even if I swap the two arguments (-resize 640 480 -> -resize 480 640).
Is there any solution how to do this?
-
- Author of XnView
- Posts: 44926
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: similar problem
try -rtype linear -rflag orient -resize 640 640Buthrakaur wrote:I have similar problem here. I'd like to process a set of images and resize them all to 640x480 at most, retain their aspect ratio and also resize them according to their orientation (that means to 640x480 at most when orientation is landscape and 480x640 at most when orientation is portrait). My aim is to process a directory with images with different aspect ratios (3:2 vs 4:3).
I tried to call nconvert like this:
nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o C:\xx\%.jpg -ratio -rtype linear -rflag orient -resize 640 480
but the -ratio and -rflag orient don't seem to work properly when I use them together. Such setting leads to too small images - the longer side is always 480 (or its ratio equivalent) instead of 640. This applies even if I swap the two arguments (-resize 640 480 -> -resize 480 640).
Is there any solution how to do this?
Pierre.