{"action":"closed","issue":{"url":"https://api.github.com/repos/dotCMS/core/issues/8551","repository_url":"https://api.github.com/repos/dotCMS/core","labels_url":"https://api.github.com/repos/dotCMS/core/issues/8551/labels{/name}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/8551/comments","events_url":"https://api.github.com/repos/dotCMS/core/issues/8551/events","html_url":"https://github.com/dotCMS/core/issues/8551","id":130364085,"number":8551,"title":"Problems with SVG images as Image Field","user":{"login":"scrossley","id":10224862,"avatar_url":"https://avatars.githubusercontent.com/u/10224862?v=3","gravatar_id":"","url":"https://api.github.com/users/scrossley","html_url":"https://github.com/scrossley","followers_url":"https://api.github.com/users/scrossley/followers","following_url":"https://api.github.com/users/scrossley/following{/other_user}","gists_url":"https://api.github.com/users/scrossley/gists{/gist_id}","starred_url":"https://api.github.com/users/scrossley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrossley/subscriptions","organizations_url":"https://api.github.com/users/scrossley/orgs","repos_url":"https://api.github.com/users/scrossley/repos","events_url":"https://api.github.com/users/scrossley/events{/privacy}","received_events_url":"https://api.github.com/users/scrossley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"freddyucv","id":10408015,"avatar_url":"https://avatars.githubusercontent.com/u/10408015?v=3","gravatar_id":"","url":"https://api.github.com/users/freddyucv","html_url":"https://github.com/freddyucv","followers_url":"https://api.github.com/users/freddyucv/followers","following_url":"https://api.github.com/users/freddyucv/following{/other_user}","gists_url":"https://api.github.com/users/freddyucv/gists{/gist_id}","starred_url":"https://api.github.com/users/freddyucv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freddyucv/subscriptions","organizations_url":"https://api.github.com/users/freddyucv/orgs","repos_url":"https://api.github.com/users/freddyucv/repos","events_url":"https://api.github.com/users/freddyucv/events{/privacy}","received_events_url":"https://api.github.com/users/freddyucv/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotCMS/core/milestones/36","html_url":"https://github.com/dotCMS/core/milestones/3.5.1","labels_url":"https://api.github.com/repos/dotCMS/core/milestones/36/labels","id":1698135,"number":36,"title":"3.5.1","description":null,"creator":{"login":"wezell","id":934364,"avatar_url":"https://avatars.githubusercontent.com/u/934364?v=3","gravatar_id":"","url":"https://api.github.com/users/wezell","html_url":"https://github.com/wezell","followers_url":"https://api.github.com/users/wezell/followers","following_url":"https://api.github.com/users/wezell/following{/other_user}","gists_url":"https://api.github.com/users/wezell/gists{/gist_id}","starred_url":"https://api.github.com/users/wezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wezell/subscriptions","organizations_url":"https://api.github.com/users/wezell/orgs","repos_url":"https://api.github.com/users/wezell/repos","events_url":"https://api.github.com/users/wezell/events{/privacy}","received_events_url":"https://api.github.com/users/wezell/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":3,"state":"open","created_at":"2016-04-11T15:19:45Z","updated_at":"2016-04-19T15:15:12Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-01T13:36:51Z","updated_at":"2016-04-19T15:15:12Z","closed_at":"2016-04-19T15:15:12Z","body":"There are problems using SVG images as image fields:\r\n\r\n1 - If the content type that contains an image field (not binary) is added to a container, then exceptions are logged to velocity log. We have also noticed that these exceptions are causing high CPU and memory usage and resulted in taking our site(s) down. \r\nThe exception is being thrown by the containers call to #getContentByIdentifier and not by any velocity code in the container for loop. \r\nI have tracked it down to the call to VelocityWebUtil.mergeTemplate(String templatePath)\r\nExample trace is attached: velocity-error.txt\r\n[velocity-error.txt](https://github.com/dotCMS/core/files/112284/velocity-error.txt)\r\n\r\n\r\n\r\n2- When an SVG image is selected for an image field it does not render correctly within the content edit view. (shows as a black square)\r\n\r\n3 - When using the 'image picker' to browse for an image, the SVG images do not render correctly (shows as a missing image)\r\n\r\n[Tested on dotCMS 3.2.3 and 3.3]"}}