mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Removed ngen from the installer
Moved the SvgImage to GreenshotPlugin, so it's available everywhere Upgraded Dapplo.Jira to a more modern version, but still far from current.
This commit is contained in:
parent
2cf0606bde
commit
7e99478b86
8 changed files with 172 additions and 190 deletions
|
@ -60,7 +60,22 @@ namespace GreenshotPlugin.Core {
|
|||
return surface.GetImageForExport();
|
||||
};
|
||||
|
||||
static Image DefaultConverter(Stream stream, string s)
|
||||
// Add a SVG converter
|
||||
StreamConverters["svg"] = (stream, s) =>
|
||||
{
|
||||
stream.Position = 0;
|
||||
try
|
||||
{
|
||||
return SvgImage.FromStream(stream).Image;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error("Can't load SVG", ex);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
static Image DefaultConverter(Stream stream, string s)
|
||||
{
|
||||
stream.Position = 0;
|
||||
using var tmpImage = Image.FromStream(stream, true, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue