public Dictionary <string, object> getThumb(ExifParser exifParser) { byte[] thumb = exifParser.thumb(); if (thumb != null) { BinaryReader br = new BinaryReader(new MemoryStream(thumb)); Dictionary <string, int> thumbInfo = info(br); br.clear(); if (thumbInfo != null) { return(new Dictionary <string, object>() { { "width", thumbInfo["width"] }, { "height", thumbInfo["height"] }, { "data", thumb } }); } } return(null); }
public Dictionary<string, object> getThumb(ExifParser exifParser) { byte[] thumb = exifParser.thumb(); if (thumb != null) { BinaryReader br = new BinaryReader(new MemoryStream(thumb)); Dictionary<string, int> thumbInfo = info(br); br.clear(); if (thumbInfo != null) { return new Dictionary<string, object>() { { "width", thumbInfo["width"] }, { "height", thumbInfo["height"] }, { "data", thumb } }; } } return null; }