@Override
    public Resource<File> decode(File source, int width, int height) {
        return new FileResource(source);
    }
A simple {@link ResourceDecoder} that creates resource for a given {@link File}.
core/src/main/java/com/bumptech/glide/load/resource/file/FileDecoder.java