CapInsetImageGenerator is an OS X tool for generating resizable images with cap insets. This program is very easy to use: open an image file, specify the insets you want, and then save. You can also paste or drag the image onto the source, and copy the resizable image (after selecting it).