WIP: icon db

This commit is contained in:
Ray committed 2021-09-21 15:27:00 +01:00
1 parent 253365d25e
commit 4c031108f0
3 files changed
+67 -29

No files matched your search

-1
View File
@@ -237,7 +237,6 @@ namespace BookmarkManager
protected byte[] ImageToBytes(Image image)
{
MemoryStream stream = new MemoryStream();
//image.Save(stream, ((image.RawFormat == null) ? ImageFormat.Bmp : new ImageFormat(image.RawFormat.Guid)));
image.Save(stream, ImageFormat.Bmp);
stream.Close();
+4 -4
View File
@@ -143,10 +143,10 @@ namespace BookmarkManager
rs = parseTagValue_Attr(doc, "//meta[translate(@itemprop, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'image']", "content", string.Empty);
}
//if (string.IsNullOrWhiteSpace(rs))
//{
// rs = "/favicon.ico";
//}
if (string.IsNullOrWhiteSpace(rs))
{
rs = "/favicon.ico";
}
return rs;
}