We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 313c323 commit 9f62f37Copy full SHA for 9f62f37
1 file changed
src/main/java/technobot/commands/levels/RankCommand.java
@@ -230,7 +230,8 @@ private BufferedImage getAvatar(User user) throws IOException {
230
return scaleOp.filter(addon, after);
231
232
} catch (MalformedURLException e) {
233
- URL url = new URL(user.getEffectiveAvatarUrl());
+ String avatar = user.getEffectiveAvatarUrl().replace(".gif", ".png");
234
+ URL url = new URL(avatar);
235
BufferedImage addon = ImageIO.read(url);
236
237
int w = addon.getWidth() - 45;
0 commit comments