Converting png,gif,bmp to jpeg