RewriteCond %{REQUEST_FILENAME}  !-f
RewriteRule ^(.+)\.gif           $1.jpg   [L]