1. A method for creating an optimized gradient mesh of a vector-based image from a raster-based image, comprising: receiving a set of boundaries for an object on a raster-based image; creating an initial gradient mesh of the object; and minimizing a residual energy between the object on the raster-based image and a rendered initial gradient mesh to generate an optimized gradient mesh.