Uh, using PHP? I assume you are just talking about scanning a photo to your pc and making it a jpeg. I have never claimed to a graphic designer BUT if your scanner automatically turns your scans into bmp, then you would probably need something along the lines of Photoshop to create jpegs out of them.