+ string const abs_file = MakeAbsPath(file, lv_.buffer()->filePath());
+
+ string const from = getExtFromContents(abs_file);
+ // Check if we have a Postscript file, then it's easy
+ if (contains(from, "ps"))
+ return readBB_from_PSFile(abs_file);
+
+ // we don't, so ask the Graphics Cache if it has loaded the file
+ grfx::GCache & gc = grfx::GCache::get();
+ return ("0 0 " +
+ tostr(gc.raw_width(abs_file)) + ' ' +
+ tostr(gc.raw_height(abs_file)));