I want to process images in batched for uploading onto websites. I am looking for a script which will provide optimum compression with 1024x768 size using commandline tools like image magic etc.
EDIT: 1 Here is one that I did on MS Windows. orginally It was 3008x2000. I used MS office picture manager to reduce the resolution to 1024x768 and the file size was around 600KB. Then I ran it through sea monster and the final outcome was 1024x768 resolution and the file size was 84 KB. Here is the picture:

Using the same process with image magic and smoosh.it gives a picture which has a size of 314 KB.