Kreatus (Ubot Ninja) 422 Posted October 9, 2012 Report Share Posted October 9, 2012 Anyone know how to resize image with ubot without using image resizer website or installing something in the user computer?Or simple by creating image resizer command line? Tried imagemagick but it needs to install on your computer before you can use it.I tried this code I found on the net also but it didnt work. "i_view32.exe c:\temp\testpics\*.jpg /resize=(200,100) /aspectratio /resample /convert=c:\temp\testpics\testsmall\*.png" Thanks Quote Link to post Share on other sites
Pete 121 Posted October 9, 2012 Report Share Posted October 9, 2012 i_view32.exe is from IrfanView so i would think you need to install that for this to workIf you use IrfanView i believe there are also some vbscripts that also work with Irfanview thats one more opton Quote Link to post Share on other sites
a2mateit 395 Posted October 9, 2012 Report Share Posted October 9, 2012 Hey K, Have you tried using a 3rd party website like online-image-editor? I use it for many things. Might be worth looking into... Not sure what your hoping to accomplish, but this might be an option to look into. You can resize during upload and then re-download. Or you can resize to your width and height specifications... HTH,Justin Quote Link to post Share on other sites
a2mateit 395 Posted October 9, 2012 Report Share Posted October 9, 2012 Heres an example script to resize images to fit your needs:image resizer.ubot And here it is in code form ui open file("Picture", #picture) ui text box("Height", #height) ui text box("width", #width) define picture resize { navigate("http://www.online-image-editor.com/", "Wait") change file field(<name="FiletoUpload">, #picture) click($element offset(<class="parameters">, 1), "Left Click", "No") wait for element(<id="btn_resize">, "", "Appear") click(<id="btn_resize">, "Left Click", "No") wait for element(<name="aspect">, "", "Appear") change checkbox(<name="aspect">, "Unchecked") change attribute(<name="width">, "value", #width) change attribute(<name="height">, "value", #height) click(<value="Apply">, "Left Click", "No") wait(3) wait for element(<id="tlbr_hdr">, "", "Appear") } HTH,Justin Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted October 9, 2012 Author Report Share Posted October 9, 2012 Yes Justin, Tried some online image resizer.. It would be more convenient if the solution can be done within command line for what I am doing..I guess that's the only option that i can do for now.Thanks for the code. K Quote Link to post Share on other sites
a2mateit 395 Posted October 9, 2012 Report Share Posted October 9, 2012 Wasn't really sure what you were doing or wanting to use it for, if I helped even a little then cool. If not, well... Too bad Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.