I want to use Nconvert to resize some of my .JPG files , when i use the code :
nconvert -out jpeg -ratio -rflag orient -resize 50% 50% *.jpg, it works fine but if i do this, the file size might still not be at my desired filesize , is there an input parameter that allows me to choose desired file size?
How do i choose target filesize to be compressed to(if any)
Moderators: XnTriq, helmut, xnview
-
- Posts: 1
- Joined: Mon Nov 04, 2019 8:54 am
-
- XnThusiast
- Posts: 4136
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: How do i choose target filesize to be compressed to(if any)
traoiu123123 wrote: ↑Mon Nov 04, 2019 9:06 am I want to use Nconvert to resize some of my .JPG files , when i use the code :
it works fine but if i do this, the file size might still not be at my desired filesize , is there an input parameter that allows me to choose desired file size?Code: Select all
nconvert -out jpeg -ratio -rflag orient -resize 50% 50% *.jpg
You can use the -q option to set the JPEG compression used, but as far as I know without checking the help file I don't think that there is an option to set a target filesize, although that is supported I think using the GUI software XnView MP or Classic...