To convert an image from black to white or vice versa, you can use image editing software such as Adobe Photoshop or GIMP. Here are the steps you can follow:
Open the image in your image editing software.
If the image is in color, convert it to grayscale by selecting Image > Mode > Grayscale.
Invert the image by selecting Image > Adjustments > Invert.
If necessary, adjust the brightness and contrast to achieve the desired result.
Save the image as a new file to preserve the original image.
Alternatively, you can also use a simple online image editor such as Pixlr or Fotor to achieve the same result. Just upload your image and use the invert or negative filter to reverse the colors.