{"action":"created","issue":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/949","labels_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/949/labels{/name}","comments_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/949/comments","events_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/949/events","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/949","id":64301218,"number":949,"title":"Loading image using same URI but different preProcessors and memory cache enabled.","user":{"login":"Lingviston","id":3840139,"avatar_url":"https://avatars.githubusercontent.com/u/3840139?v=3","gravatar_id":"","url":"https://api.github.com/users/Lingviston","html_url":"https://github.com/Lingviston","followers_url":"https://api.github.com/users/Lingviston/followers","following_url":"https://api.github.com/users/Lingviston/following{/other_user}","gists_url":"https://api.github.com/users/Lingviston/gists{/gist_id}","starred_url":"https://api.github.com/users/Lingviston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lingviston/subscriptions","organizations_url":"https://api.github.com/users/Lingviston/orgs","repos_url":"https://api.github.com/users/Lingviston/repos","events_url":"https://api.github.com/users/Lingviston/events{/privacy}","received_events_url":"https://api.github.com/users/Lingviston/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-25T15:39:59Z","updated_at":"2015-03-25T20:23:18Z","closed_at":null,"body":"I need to display single image in two different places. The problem is that I need it to be memory cached and in the first place I need to use preProcessor while in the second one I need not.\r\nSo when I first call ImageLoader.displayImage the result image is cached and so everywhere I get preProcessed/not preProcessed version of it.\r\n\r\nI need a suggestion about how to deal with this situation.\r\nThe only idea I have is to define new uri scheme for preProcessed image (for example \"myuri\") version and keep using default \"file\" scheme for the other cases. Then in BaseImageDecoder extensio I can check if image uri is \"myuri\" and if it is then I need to create a copy of incoming ImageDecodingInfo instance but with uri changed to original \"file\" uri. In this case I can use already existing \"file\" decoder and my preProcessed/not preProcessed images will have different cache keys (cause I pass another instance of it to decoder). But UIL doesn't provide copying mechanism for ImageDecodingInfo and setters for it's fields too. \r\n\r\nSo my question is if there's a more simple way to achieve what I want or I need to add ImageDecodingInfo copying mechanics to UIL?"},"comment":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/comments/86202193","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/949#issuecomment-86202193","issue_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/949","id":86202193,"user":{"login":"Lingviston","id":3840139,"avatar_url":"https://avatars.githubusercontent.com/u/3840139?v=3","gravatar_id":"","url":"https://api.github.com/users/Lingviston","html_url":"https://github.com/Lingviston","followers_url":"https://api.github.com/users/Lingviston/followers","following_url":"https://api.github.com/users/Lingviston/following{/other_user}","gists_url":"https://api.github.com/users/Lingviston/gists{/gist_id}","starred_url":"https://api.github.com/users/Lingviston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lingviston/subscriptions","organizations_url":"https://api.github.com/users/Lingviston/orgs","repos_url":"https://api.github.com/users/Lingviston/repos","events_url":"https://api.github.com/users/Lingviston/events{/privacy}","received_events_url":"https://api.github.com/users/Lingviston/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T20:23:18Z","updated_at":"2015-03-25T20:23:18Z","body":"I need to render PDF page thumbnails with some special overlays.\r\nI have renderer class which I use in my custom View subclass and want to use the same class for thumbnails rendering. So I implemented \"pdf:/pageno\" uri scheme support using an extension of BaseImageDecoder."}}