Is the word "trim" used in the same way in the following two sentences?

Trim an airplane.

Trim the photograph.
different meanings