\usepackage {graphicx}
left\HR\fbox{%
  \includegraphics
     [viewport=20 20 50 100,clip]%
     {w.eps}}\HR right
\quad
left\HR\fbox{%
  \includegraphics
     [trim= 5 5 10 10,clip]%
     {w.eps}}\HR right
