As the other article explains in a convoluted manner, DPI is related to the print size - and therefore is a printer setting. An actual digital image size is measured in pixels - and Pixels Per Inch.
You can find out the pixel dimensions in iPhoto by highlighting a particular image and then pressing the 'i' button in the bottom left corner under the albums list. (Command i shows all of the metadata for the image if you want even more info)
It will show you image as, for example, 3000 x 4000 pixels. At Mac screen 'native' resolution, this image will be at 72PPI. So, you can divide the pixel dimensions by the native resolution, ie: 3000 divided by 72, gives you about 41 inches.
If you choose to print an image at 144PPI, the image natively reduces to half its size and will therefore print the 3000 pixels to fit into approximately 20 inches.
It is commonly recommended that if you are printing an image that the PPI should be at least 144PPI for reasonable quality. Magazines and professional printed items tend to require 300PPI and above for higher quality output. High quality photographic plates can often be huge files at 2880PPI for best possible print quality.
I am not quite sure what you are trying to achieve. You cannot improve an image by artificially increasing the PPI as most applications will simply double up the pixels. You need to either photograph or scan at the highest possible resolution and size down for best image quality.