Sometimes, we may have a raster image (JPG, PNG ...), which used to be a vector image. The original vector image can be recreated by hand, but it may take a lot of time. Photopea can do it automatically, it is called bitmap vectorization or bitmap tracing.
