Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
but the photo is always saved at 72 dpi. If I open this photo in photoshop, save as another name without any other file modifications and rerun the command above, the resized png has a 300 dpi.
Note IM saves and used the correct JPEG density setting.
Photoshop however does not, it saves and uses a density setting in one of its special profiles, and not the default JPEG settings. You will need to strip that profile from the image before photoshop will use the proper default JPEG density information.