private static void toPNG(Context context, String string, File output, int width, int height){
try{
Glide.with(context)
.load(string)
.asBitmap()
.override(width, height)
.get()
.compress(Bitmap.CompressFormat.PNG, 100, new FileOutputStream(output));
}catch (Exception e){
e.printStackTrace();
log(e.getMessage());
}
}