Function to determine whether its jpg and converting gif to jpg

I need one method and one function created. The function will return true or false (whether the path sent in is an jpg or not).

There are 2 examples enclosed to use. The P998 would return True and the 4221-0008R will return false.

It cannot hard code them either. Obviously cannot just go by the file extension. Because there was several gifs that I renamed to jpg even though its not jpg.

The other function will accept path as a parameter and it will create a jpg.

The part that will create a jpg cannot have a black background if the original file does not. The 4221-0008R one for example obviously does not have a black background. The background will need to be white (since jpg does not allow transparancy).

Must use the .net framework 4.0 using visual studio 2010 and must use visual basic for this.

## Deliverables

What is needed like I said is to figure out if an image sent in is jpg or not.

Plus another function that will create a jpg. Since it needs to overwrite the file; then what that will need to do is the following.

First; save a temporary file. Then overwrite the file. Because what I want is the jpg and not the gif anymore.

The project type needs to be console application.

For the sample; will do the following.

Will first; send in the p998 one (since it should return true for jpg); then it will not create jpg. However; the second one (should return false) even though its not hard coded. For that one; because of that; it will create the jpg (to prove it works). However; the purpose of the function that returns true/false is so I can use that information elsewhere (and I won't even have it create the jpg.

Let me know if you have any questions.

Habilidades: .NET, Visual Basic

Veja mais: i would like to know whether, what is visual studio, what is a net framework, to jpg, jpg to, determine, net jpg, 2010 console project, net console application, net console, background studio image, create sample project visual studio, converting visual basic, visual basic 2010 path, visual studio 2010 console application, project gif jpg, code gif, can determine, studio background 2011, function sample, visual basic project 2010, gif white background, jpg background studio, true type create, visual studio 2010 visual basic

Acerca do Empregador:
( 781 comentários ) Sydney, Australia

ID do Projeto: #3471906

Concedido a:


See private message.

$42.5 USD em 1 dia
(39 Comentários)

2 freelancers estão ofertando em média $32 para esse trabalho


See private message.

$21.25 USD em 1 dia
(5 Comentários)