Jump to content

Recommended Posts

Posted

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.


Posted

ok nevermind, i made an autoit script to open and resave the JPG's... took my pictures from 790 megs to 150 megs. :D *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 = 300000
for $i = 1 to 4000000
If 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+1
EndIf
next

Exit

all 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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...