With ImageMagick, you can use -resize 600x800 and it will automatically choose the correct size (i.e., maximum 600 width and 800 height).
When it comes to reducing the number of colours, you can use the -map option, which gives the exact colours to be used in the output image (that's good if we know which are the exact grey intensities the eBook screen will display).
|