This script uses the selected paths to create a vector version of the selected raster images. It is similar to the Object Raster script from the examples, but there are some important differences:
- The paths are NOT scaled to obtain different grayscale values. Instead the path with the closest matching gray value is used for each area of the raster image. It is VERY IMPORTANT, therefore, to use multiple paths with different areas. The more paths you use and the greater their variation in tone, the more accurately the raster image will be recreated.
- To scale the paths in the final image (ie change the resolution) just scale the sample paths. They will be used as is, with no change in size or style.
- The script uses any paths you select, so you can use simple shapes such as circles (remembering to select mutiple circles at different sizes), custom shapes such as hearts, or even letters or more complex shapes. To use letters, create a text box, type each character or glyph you want to be included, then expand the text box to convert the letters to outlines. Use this group as your sample paths.
Note that the paths are all centered on their grid squares when used in the image, so letters will NOT maintain their baselines. If anyone is able to adapt it to allow for a standard baseline I think it might be a valuable addition.
You can get particularly rich images by using negative values for the grid gutters and applying transparency and blend modes to your sample paths. Inverting the tones is useful if you want your shapes to be filled with a light colour and set on a dark background
In most of the sample images I have included my sample paths to the bottom left of the final image.
Feel free to post queries or report bugs. I’d love to hear if you find it useful.