Baruch, I need to make the following ChangeExtension() change to your code to find the .xpm file in the tmp directory. Otherwise I get: Converting from png to xpm Calling convert 'tjunc-expr-4.png' XPM:'tjunc-expr-4.xpm' moving /usr/users/aleem/err/tjunc-expr-4.xpm to /tmp/lyx_tmpdir425aaanja/tjunc-expr-4425aaanja.xpm imageConverted, retval=0 Loading XPM Image... No XPM file found. Loading /tmp/lyx_tmpdir425aaanja/tjunc-expr-4425aaanja Failed Now I get as far as ImageLoaderXPM::runImageLoader() where the call XpmReadFileToPixmap fails with Error reading XPM file 'XpmColorFailed' The good news is xv can load and display the file, so there's hope! Is this info any help? How far do others get? Angus Index: graphics/GraphicsCacheItem.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/graphics/GraphicsCacheItem.C,v retrieving revision 1.12 diff -u -p -r1.12 GraphicsCacheItem.C --- graphics/GraphicsCacheItem.C 2001/04/02 19:56:48 1.12 +++ graphics/GraphicsCacheItem.C 2001/04/05 15:41:52 @@ -120,7 +120,7 @@ GraphicsCacheItem::convertImage(string c // Add some stuff to have it a unique temp file. // This tempfile is deleted in loadImage after it is loaded to memory. - tempfile = lyx::tempName(string(), temp); + tempfile = ChangeExtension(lyx::tempName(string(), temp), to); // Remove the temp file, we only want the name... lyx::unlink(tempfile); @@ -143,12 +143,12 @@ GraphicsCacheItem::loadImage() image_.reset(imageLoader.getImage()); imageStatus_ = GraphicsCacheItem::Loaded; } else { - lyxerr << "Loading " << tempfile << "Failed" << endl; + lyxerr << "Loading " << tempfile << " Failed" << endl; imageStatus_ = GraphicsCacheItem::ErrorReading; } // remove the xpm file now. lyx::unlink(tempfile); // and remove the reference to the filename. - tempfile = string(); + tempfile.erase(); } Index: graphics/ImageLoaderXPM.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/graphics/ImageLoaderXPM.C,v retrieving revision 1.1 diff -u -p -r1.1 ImageLoaderXPM.C --- graphics/ImageLoaderXPM.C 2001/02/08 13:20:24 1.1 +++ graphics/ImageLoaderXPM.C 2001/04/05 15:41:52 @@ -78,8 +78,8 @@ ImageLoaderXPM::runImageLoader(string co if (status != XpmSuccess) { lyxerr << "Error reading XPM file '" - << XpmGetErrorString(status) - << endl; + << XpmGetErrorString(status) + << "'" << endl; return ErrorWhileLoading; }