Sign in to follow this  
Followers 0
Kyler Carlson

Convert .jpg to .bmp

7 posts in this topic

#1 ·  Posted (edited)

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



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

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

$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

but the image works fine

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  
Followers 0