+2001-07-30 Baruch Even <baruch@lyx.org>
+
+ * insetgraphics.C (decideOutputImageFormat): when doing postscript output
+ convert PNG/GIF/JPG to EPS, assume the rest are EPS already.
+
+ HACKY! Will need to add an EPS detection routine like old InsetFig does!
+
2001-07-30 Baruch Even <baruch@lyx.org>
* insetgraphics.C: Added EPSI to be an alias of EPS.
}
// If it's postscript, we always do eps.
- if (in_fmt == "eps" || in_fmt == "epsi")
- return in_fmt; // eps & epsi are both eps, but different extension.
- return "eps";
+ // Garst has many eps files with various extensions, we just assume
+ // whatever goes in (except those we know to be otherwise) is eps
+ if (in_fmt == "gif" || in_fmt == "png" || in_fmt == "jpg")
+ return "eps";
+ return in_fmt;
}
} // Anon. namespace