// Use the standard converter if we don't know the format to load
// from.
if (from.empty())
- return string("png");
+ return string("ppm");
// First ascertain if we can load directly with no conversion
FormatList::const_iterator it = formats.begin();
// Failed! so we have to try to convert it to PPM format
// with the standard converter
- return string("png");
+ return string("ppm");
}
FileName const to_file_base = FileName::tempName("CacheItem");
remove_loaded_file_ = true;
- // Remove the temp file, we only want the name...
- // FIXME: This is unsafe!
- to_file_base.removeFile();
-
// Connect a signal to this->imageConverted and pass this signal to
// the graphics converter so that we can load the modified file
// on completion of the conversion process.