{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/391","repository_url":"https://api.github.com/repos/spatie/laravel-medialibrary","labels_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/391/comments","events_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/391/events","html_url":"https://github.com/spatie/laravel-medialibrary/issues/391","id":185376204,"number":391,"title":"Problem: ->getFirstMediaUrl() file SVG collection","user":{"login":"Clem01","id":9021081,"avatar_url":"https://avatars.githubusercontent.com/u/9021081?v=3","gravatar_id":"","url":"https://api.github.com/users/Clem01","html_url":"https://github.com/Clem01","followers_url":"https://api.github.com/users/Clem01/followers","following_url":"https://api.github.com/users/Clem01/following{/other_user}","gists_url":"https://api.github.com/users/Clem01/gists{/gist_id}","starred_url":"https://api.github.com/users/Clem01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clem01/subscriptions","organizations_url":"https://api.github.com/users/Clem01/orgs","repos_url":"https://api.github.com/users/Clem01/repos","events_url":"https://api.github.com/users/Clem01/events{/privacy}","received_events_url":"https://api.github.com/users/Clem01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-26T12:13:49Z","updated_at":"2016-10-26T20:11:18Z","closed_at":null,"body":"Hello,\r\n\r\nI have a problem with the SVG files and with its collection.\r\n\r\nWhen a SVG file was uploded, the collection (thumb) wasn't created.\r\nAnd when i use the method getFirstMediaUrl, the url returned is: {{path}}/c/thumb.jpg\r\n\r\nThank you for your help.\r\n\r\nIn my model:\r\n```\r\n    public function registerMediaConversions()\r\n    {\r\n        $this->addMediaConversion('thumb')\r\n             ->setManipulations(['w' => 300, 'h' => 300])\r\n             ->performOnCollections('*');\r\n    }\r\n```\r\n\r\nIn my controller:\r\n`$url = $user->getFirstMediaUrl('signature', 'thumb');`\r\n"},"comment":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/comments/256462855","html_url":"https://github.com/spatie/laravel-medialibrary/issues/391#issuecomment-256462855","issue_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/391","id":256462855,"user":{"login":"nicolasbeauvais","id":2951704,"avatar_url":"https://avatars.githubusercontent.com/u/2951704?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasbeauvais","html_url":"https://github.com/nicolasbeauvais","followers_url":"https://api.github.com/users/nicolasbeauvais/followers","following_url":"https://api.github.com/users/nicolasbeauvais/following{/other_user}","gists_url":"https://api.github.com/users/nicolasbeauvais/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasbeauvais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasbeauvais/subscriptions","organizations_url":"https://api.github.com/users/nicolasbeauvais/orgs","repos_url":"https://api.github.com/users/nicolasbeauvais/repos","events_url":"https://api.github.com/users/nicolasbeauvais/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasbeauvais/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T20:11:17Z","updated_at":"2016-10-26T20:11:17Z","body":" Did you installed Imagick ? https://github.com/spatie/laravel-medialibrary/blob/master/README.md#requirements\r\n\r\nAlso which version of medialibrary are you using ? SVG conversion support has been implemented recently."}}
{"actor":{"display_login":"nicolasbeauvais"}}