Synapse Posted June 25, 2005 Posted June 25, 2005 ok, sisters computer crashed out and i had to recover pictures off her comp. now... all the files are .JPG but they are 1.43 megs each..... if i open them in paint and save them again in Paint they are reduced down to about 236 KB......anyone know of a program that might be able to do this?i'm gonna be trying to make an AutoIT script to try to do it in the meantime.There are 547 files, so doing them manually is not going to happen lol.
Synapse Posted June 25, 2005 Author Posted June 25, 2005 ok nevermind, i made an autoit script to open and resave the JPG's... took my pictures from 790 megs to 150 megs. *This was because i used a recovery program, and every file was 1.43 megs... by resaving them i cut them down to about 280 KB's each*This probably serves no purpose to anyone else lol... but in case anyone needs the script in the future:$var = "C:\Documents and Settings\Phil\Desktop\Recover\cluster "$count = 300000for $i = 1 to 4000000If FileExists ($var & $count & ".JPG") Then clipput($var & $count & ".JPG") $count=$count+1 Sleep(400) Run ('mspaint.exe')WinWaitActive('untitled')Send("^o")WinWaitActive('Open')Send("^v")Sleep(300)Send("!o")Sleep(500)Send("^s")WinClose('cluster')Else $count=$count+1EndIfnextExitall this does, is look in the folder in the string "$var" the last part Recovery\cluster *there is a space there* is because the file names were "cluster ######.JPG"the $count set to 300,000 is because the lowest file was like 302,662 or something. highest file was like 3,523,183.if the file doesn't exist. then it just increments the counter, if the file does exist it opens paint, opens the file, saves it, then closes paint and continues to the next file.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now