[Preview] Image Converter

Posts 1–11 of 11 · Page 1 of 1
[Preview] Image Converter
Hey guys, this is an on-going project i've started not long ago... I might need some help from somebody with the rest of it..

Here is what it looks like so far..



I just need some help uploading the image & downloading the image..
If you need the site name for what im using. Please VM/PM me, or reply to this thread!
Looks good. 2 lines of code for converting btw.
What you need to know for uploading and downloading images ?
How to make it work..

Im using: Online Image Converterⓘ
as the site for it all.. but i cant figure out how to:
Upload the photo
Download the photo
Quote Originally Posted by AceKill3r View Post
How to make it work..

Im using: Online Image Converter
as the site for it all.. but i cant figure out how to:
Upload the photo
Download the photo
Use Webbrowser elements to navigate and upload the photo. The photo when uploaded returns a perma address. Just save it somewhere. If you want spoonfeeding, I leave it to Jason.
Quote Originally Posted by Hassan View Post


Use Webbrowser elements to navigate and upload the photo. The photo when uploaded returns a perma address. Just save it somewhere. If you want spoonfeeding, I leave it to Jason.
Im not familiar with Webbrowser elements, Ill just wait for jason :-)
Quote Originally Posted by AceKill3r View Post
Im not familiar with Webbrowser elements, Ill just wait for jason :-)
Mehz, they are easy:

[highlight=vbnet]For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("a")
MsgBox(m.OuterText)
Next[/highlight]

Will get all links of a particular page.

But
Quote Originally Posted by Hassan View Post


Mehz, they are easy:

[highlight=vbnet]For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("a")
MsgBox(m.OuterText)
Next[/highlight]

Will get all links of a particular page.

But
Ill wait for jason to get here He know's more than i do haha
Nice gui, Im gonna use that program

Maybe try 2 use ftp or something?
Weird, I never saw this thread. Oh well, better late than never right? Personally I'd just convert them in VB, as Hassan said, it's only a few lines of code so people don't need to wait for the internet.

Here's an example"

[highlight=vb.net]
Dim imgLoc As String = "C:\Users\Jason_2\Documents\A-Grade\Abatar.png"
Dim img As Image = Image.FromFile(imgLoc)
img.Save(imgLoc.Substring(0, imgLoc.LastIndexOf(".")) & ".gif", System.Drawing.Imaging.ImageFormat.Gif)
[/highlight]
I myself tried playing round with the site, got the browse button working, the output format selection working. Problem is that it doesn't begin uploading after browsing so better off doing it programmitcally instead of through a website. Makes it less troublesome.

Still want the code for study purposes?
[highlight=vbnet] WebBrowser1.Document.GetElementById("uploadify").I nvokeMember("click") 'Click the browse button
Select Case ComboBox1.SelectedItem.ToString 'Check the choice appropriately according to the comx
Case "JPEG"
WebBrowser1.Document.GetElementById("fmt_JPEG").Se tAttribute("checked", "True")
Case "BMP"
WebBrowser1.Document.GetElementById("fmt_BMP").Set Attribute("checked", "True")
Case "TIFF"
WebBrowser1.Document.GetElementById("fmt_TIFF").Se tAttribute("checked", "True")
Case "GIF"
WebBrowser1.Document.GetElementById("fmt_GIF").Set Attribute("checked", "True")
Case "ICO"
WebBrowser1.Document.GetElementById("fmt_ICO").Set Attribute("checked", "True")
Case "PNG"
WebBrowser1.Document.GetElementById("fmt_PNG").Set Attribute("checked", "True")
End Select
WebBrowser1.Document.GetElementById("convert").Inv okeMember("click") 'Only works when finished uploading which in this case never happens[/highlight]
Thanks all.. I will take a look at it all when i have energy!
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us