Jump to content
Sign in to follow this  
Kyler Carlson

Convert .jpg to .bmp

Recommended Posts

Kyler Carlson

Hey. A script I found has this line.

RunWait(@ScriptDir & "\pvw32con.exe " & '"' & $s_path & '"' & " -w --oo " & '"' & @WindowsDir & "\xwall.bmp" & '"', @ScriptDir, @SW_HIDE)

when I try and run it, I get this error

C:\Documents and Settings\HP_Administrator\Desktop\wall changer.au3 (85) : ==> Unable to execute the external program.: 
RunWait(@ScriptDir & "\pvw32con.exe " & '"' & $s_path & '"' & " -w --oo " & '"' & @WindowsDir & "\xwall.bmp" & '"', @ScriptDir, @SW_HIDE) 
The system cannot find the file specified.

so does anybody know what pvw32con.exe is or a way to convert a .jpg file into a .bmp file. I didn't write the origional script and I want the conversion to be automated so don't tell me to open it in paint and then save it as a bpm please. Thanks for some help.

EDIT: I googled the file I was missing and found it. It now works.

Edited by Kyler Carlson

Share this post


Link to post
Share on other sites
bigassmuffin

you dont even have to convert the image, if you jsut open up the image, and lcick save as, then select bmp. file to save as...and overwirte old file

Share this post


Link to post
Share on other sites
Kyler Carlson

i'm looking for more of an automated way to do it with autoit though rather than manually opening it and saving it as a bmp because thats kind of impractical to do with potentially over 100 pictures

Share this post


Link to post
Share on other sites
NELyon

$pic = FileRead("test.jpg")
FileWrite("testconverted.bmp", $pic)

I didn't really think that would work, but i guess it does.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.