{"action":"created","issue":{"url":"https://api.github.com/repos/BerndGabriel/HtmlViewer/issues/212","repository_url":"https://api.github.com/repos/BerndGabriel/HtmlViewer","labels_url":"https://api.github.com/repos/BerndGabriel/HtmlViewer/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/BerndGabriel/HtmlViewer/issues/212/comments","events_url":"https://api.github.com/repos/BerndGabriel/HtmlViewer/issues/212/events","html_url":"https://github.com/BerndGabriel/HtmlViewer/issues/212","id":275105023,"node_id":"MDU6SXNzdWUyNzUxMDUwMjM=","number":212,"title":"Image URL not recognized as image ","user":{"login":"TommySlokky","id":3811494,"node_id":"MDQ6VXNlcjM4MTE0OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3811494?v=4","gravatar_id":"","url":"https://api.github.com/users/TommySlokky","html_url":"https://github.com/TommySlokky","followers_url":"https://api.github.com/users/TommySlokky/followers","following_url":"https://api.github.com/users/TommySlokky/following{/other_user}","gists_url":"https://api.github.com/users/TommySlokky/gists{/gist_id}","starred_url":"https://api.github.com/users/TommySlokky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TommySlokky/subscriptions","organizations_url":"https://api.github.com/users/TommySlokky/orgs","repos_url":"https://api.github.com/users/TommySlokky/repos","events_url":"https://api.github.com/users/TommySlokky/events{/privacy}","received_events_url":"https://api.github.com/users/TommySlokky/received_events","type":"User","site_admin":false},"labels":[{"id":211229405,"node_id":"MDU6TGFiZWwyMTEyMjk0MDU=","url":"https://api.github.com/repos/BerndGabriel/HtmlViewer/labels/bug%20confirmed","name":"bug confirmed","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-18T19:53:25Z","updated_at":"2018-09-17T13:36:36Z","closed_at":null,"author_association":"NONE","body":"If you have code like this:\r\n`<a href=\"http://sourceforge.net\"><img src=\"http://sflogo.sourceforge.net/sflogo.php?group_id=92177&amp;type=1\" alt=\"\" width=\"88\" height=\"31\" /></a>`\r\n\r\nHtmlViewer will not recognize it as an image in \r\n\r\nThtImageLoader.LoadImageFromStream where it calls KindOfImage\r\n\r\nI can see the code is not happy about the header inside the stream graphic content... I don't know - maybe one could use MIME detection as fallback or similar"},"comment":{"url":"https://api.github.com/repos/BerndGabriel/HtmlViewer/issues/comments/422019094","html_url":"https://github.com/BerndGabriel/HtmlViewer/issues/212#issuecomment-422019094","issue_url":"https://api.github.com/repos/BerndGabriel/HtmlViewer/issues/212","id":422019094,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjAxOTA5NA==","user":{"login":"BerndGabriel","id":90834,"node_id":"MDQ6VXNlcjkwODM0","avatar_url":"https://avatars0.githubusercontent.com/u/90834?v=4","gravatar_id":"","url":"https://api.github.com/users/BerndGabriel","html_url":"https://github.com/BerndGabriel","followers_url":"https://api.github.com/users/BerndGabriel/followers","following_url":"https://api.github.com/users/BerndGabriel/following{/other_user}","gists_url":"https://api.github.com/users/BerndGabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/BerndGabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BerndGabriel/subscriptions","organizations_url":"https://api.github.com/users/BerndGabriel/orgs","repos_url":"https://api.github.com/users/BerndGabriel/repos","events_url":"https://api.github.com/users/BerndGabriel/events{/privacy}","received_events_url":"https://api.github.com/users/BerndGabriel/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T13:36:36Z","updated_at":"2018-09-17T13:36:36Z","author_association":"OWNER","body":"I cannot reproduce this issue, but there are some prerequisites to load resources from sources other than your (local) file system:\r\n1) Use TFrameBrowser\r\n2) Use ICS or Indy Components to load data (see FBrDemUnit.pas for details)\r\n3) In Delphi before 2009 you must not define NoGDIPlus, which is used to show the PNG-file.\r\n\r\nOkay, maybe I got it: since Delphi 2009 there is unit PngImage to handle PNG-Files, but LoadPng() does not use it."}}
{"actor":{"display_login":"BerndGabriel"}}