Archived
WIP: icon db
This commit is contained in:
1 parent
253365d25e
commit
4c031108f0
3 files changed
+67
-29
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user