Is there a way to define a new command so that existing
\includegraphics[scale=x]{fig_name}
becomes
\includegraphics[scale=x]{fig_name.eps}
for any x and fig_name? This is for automatic conversion of eps to pdf because eps may cause out of memeory issues with xdvipdfmx: https://tex.stackexchange.com/questions/169029/xdvipdfmx-out-of-memory.