{"action":"created","issue":{"url":"https://api.github.com/repos/bumptech/glide/issues/2955","repository_url":"https://api.github.com/repos/bumptech/glide","labels_url":"https://api.github.com/repos/bumptech/glide/issues/2955/labels{/name}","comments_url":"https://api.github.com/repos/bumptech/glide/issues/2955/comments","events_url":"https://api.github.com/repos/bumptech/glide/issues/2955/events","html_url":"https://github.com/bumptech/glide/issues/2955","id":305768018,"number":2955,"title":"Glide loading SVG image from drawable failed","user":{"login":"aomari","id":4447140,"avatar_url":"https://avatars0.githubusercontent.com/u/4447140?v=4","gravatar_id":"","url":"https://api.github.com/users/aomari","html_url":"https://github.com/aomari","followers_url":"https://api.github.com/users/aomari/followers","following_url":"https://api.github.com/users/aomari/following{/other_user}","gists_url":"https://api.github.com/users/aomari/gists{/gist_id}","starred_url":"https://api.github.com/users/aomari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aomari/subscriptions","organizations_url":"https://api.github.com/users/aomari/orgs","repos_url":"https://api.github.com/users/aomari/repos","events_url":"https://api.github.com/users/aomari/events{/privacy}","received_events_url":"https://api.github.com/users/aomari/received_events","type":"User","site_admin":false},"labels":[{"id":690472420,"url":"https://api.github.com/repos/bumptech/glide/labels/v3","name":"v3","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T00:53:23Z","updated_at":"2018-03-22T15:41:03Z","closed_at":null,"author_association":"NONE","body":"Glide version: 3.7.0\r\nDevice: Nexus-5x\r\nAndroid version: 8.1.0\r\nUsed libraries in the dependency:\r\n```\r\ndependencies {\r\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\r\n    implementation \"com.android.support:appcompat-v7:$rootProject.supportLibraryVersion\"\r\n    implementation \"com.android.support.constraint:constraint-layout:$rootProject.constraintLayout\"\r\n    implementation \"com.android.support:support-v4:$rootProject.supportLibraryVersion\"\r\n    compile \"com.android.support:preference-v7:$rootProject.supportLibraryVersion\"\r\n    compile \"com.android.support:design:$rootProject.supportLibraryVersion\"\r\n    compile \"com.android.support:support-vector-drawable:$rootProject.supportLibraryVersion\"\r\n    compile \"com.android.support:animated-vector-drawable:$rootProject.supportLibraryVersion\"\r\n    compile \"com.android.support:transition:$rootProject.supportLibraryVersion\"\r\n    implementation \"com.android.support:appcompat-v7:$rootProject.supportLibraryVersion\"\r\n    compile \"com.google.firebase:firebase-core:11.8.0\"\r\n\r\n    // parser\r\n    compile \"com.google.code.gson:gson:$rootProject.gsonVersion\"\r\n\r\n    // reactive\r\n    compile \"io.reactivex.rxjava2:rxjava:$rootProject.rxjava2Version\"\r\n    compile \"io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion\"\r\n\r\n    // code generator for view\r\n    compile \"com.jakewharton:butterknife:$rootProject.butterKnifeVersion\"\r\n    annotationProcessor \"com.jakewharton:butterknife-compiler:$rootProject.butterKnifeVersion\"\r\n\r\n    // dependency injection\r\n    compile \"com.google.dagger:dagger:$rootProject.dagger2Version\"\r\n    annotationProcessor \"com.google.dagger:dagger-compiler:$rootProject.dagger2Version\"\r\n    provided 'javax.annotation:jsr250-api:1.0'\r\n    compile 'javax.inject:javax.inject:1'\r\n\r\n    // network\r\n    compile \"com.amitshekhar.android:rx2-android-networking:$rootProject.rx2FastAndroidNetworking\"\r\n\r\n    compile \"com.android.support:multidex:$rootProject.multidex\"\r\n\r\n    // QR Scanner\r\n    compile \"me.dm7.barcodescanner:zxing:$rootProject.zxing\"\r\n\r\n    // font\r\n    compile \"uk.co.chrisjenx:calligraphy:$rootProject.calligraphyVersion\"\r\n\r\n    // image\r\n    compile \"com.github.bumptech.glide:glide:$rootProject.glideVersion\"\r\n\r\n    // date bicker calendar\r\n    //compile 'com.savvi.datepicker:rangepicker:1.2.0'\r\n\r\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\r\n    implementation 'com.android.support.constraint:constraint-layout:1.0.2'\r\n    testImplementation 'junit:junit:4.12'\r\n    androidTestImplementation 'com.android.support.test:runner:1.0.1'\r\n    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'\r\n}\r\n```\r\n\r\n**issue:**\r\nGlide invoke error method on loading an SVG image from drawables.\r\n\r\n**E.g.**\r\n```\r\nGlide.with(mContext)\r\n                    .load(R.drawable.ic_ab)\r\n                    .error(R.drawable.ic_cd)\r\n                    .into(imageViewFlag);\r\n// this loading R.drawable.ic_cd into imageView\r\n\r\nGlide.with(mContext)\r\n                    .load(R.drawable.ic_cd)\r\n                    .error(R.drawable.ic_ab)\r\n                    .into(imageViewFlag);\r\n// this loading R.drawable.ic_ab into imageView\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bumptech/glide/issues/comments/375352774","html_url":"https://github.com/bumptech/glide/issues/2955#issuecomment-375352774","issue_url":"https://api.github.com/repos/bumptech/glide/issues/2955","id":375352774,"user":{"login":"sjudd","id":1627211,"avatar_url":"https://avatars3.githubusercontent.com/u/1627211?v=4","gravatar_id":"","url":"https://api.github.com/users/sjudd","html_url":"https://github.com/sjudd","followers_url":"https://api.github.com/users/sjudd/followers","following_url":"https://api.github.com/users/sjudd/following{/other_user}","gists_url":"https://api.github.com/users/sjudd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjudd/subscriptions","organizations_url":"https://api.github.com/users/sjudd/orgs","repos_url":"https://api.github.com/users/sjudd/repos","events_url":"https://api.github.com/users/sjudd/events{/privacy}","received_events_url":"https://api.github.com/users/sjudd/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T15:41:03Z","updated_at":"2018-03-22T15:41:03Z","author_association":"OWNER","body":"Glide doesn't provide SVG support by default in v3.  In v4 Glide supports SVGs via support library and framework dependencies."}}
{"actor":{"display_login":"sjudd"}}