Jump to content
Sign in to follow this  
walle

Change picture resolution

Recommended Posts

walle

Hey

Short question, how do I change the resolution

of a picture?

I want save a picture with resolution, 180 by 135 pixels.

Changed the line, and added 180,135, no luck :)

$Film1 = (@TempDir & "\film1.jpg",180,135)

$SOURCE = _INETGETSOURCE("http://www.swedvdr.org/browse.php?sort=7&type=desc")
$Upload = _StringBetween($SOURCE,'<td align=center><a href="','"><img src=/')
For $I = 0 To $Upload [0]
Next
$Bildnr1 = StringRight($Upload [0],5)
$Film1 = (@TempDir & "\film1.jpg")
InetGet("http://www.swedvdr.org/imdbpics/" & $Bildnr1 & ".jpg", $Film1)

Any idea?

Edited by walle

Share this post


Link to post
Share on other sites
BrettF
walle

Well, that helped me alot... not :)

Can you please explain?

Edited by walle

Share this post


Link to post
Share on other sites
Quin

looking for similar solution, i'm using inetget

to fetch the picture, but I have no idea how

to change the resolution.

Share this post


Link to post
Share on other sites
Greenhorn

Moin,

for which use do you want to change the resolution ?

Do you want to display it in a GUI ?

Greetz

Share this post


Link to post
Share on other sites
seandisanti

Hey

Short question, how do I change the resolution

of a picture?

I want save a picture with resolution, 180 by 135 pixels.

Changed the line, and added 180,135, no luck :)

$Film1 = (@TempDir & "\film1.jpg",180,135)

$SOURCE = _INETGETSOURCE("http://www.swedvdr.org/browse.php?sort=7&type=desc")
$Upload = _StringBetween($SOURCE,'<td align=center><a href="','"><img src=/')
For $I = 0 To $Upload [0]
Next
$Bildnr1 = StringRight($Upload [0],5)
$Film1 = (@TempDir & "\film1.jpg")
InetGet("http://www.swedvdr.org/imdbpics/" & $Bildnr1 & ".jpg", $Film1)

Any idea?

If you look through the example scripts forum, I believe there are a few scripts to resize images

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  

×