Skip to content

Commit d1e7800

Browse files
committed
Fix level command
1 parent 983ee2a commit d1e7800

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/geysermc/discordbot/commands/LevelCommand.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2022 GeyserMC. http://geysermc.org
2+
* Copyright (c) 2020-2024 GeyserMC. http://geysermc.org
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
@@ -35,6 +35,7 @@
3535
import net.dv8tion.jda.api.interactions.commands.build.OptionData;
3636
import net.dv8tion.jda.api.utils.FileUpload;
3737
import org.apache.batik.anim.dom.SAXSVGDocumentFactory;
38+
import org.apache.batik.transcoder.SVGAbstractTranscoder;
3839
import org.apache.batik.transcoder.TranscoderException;
3940
import org.apache.batik.transcoder.TranscoderInput;
4041
import org.apache.batik.transcoder.TranscoderOutput;
@@ -135,6 +136,7 @@ protected File handle(Member member) {
135136

136137
// Convert the svg
137138
PNGTranscoder pngTranscoder = new PNGTranscoder();
139+
pngTranscoder.addTranscodingHint(SVGAbstractTranscoder.KEY_ALLOW_EXTERNAL_RESOURCES, Boolean.TRUE);
138140
pngTranscoder.transcode(transcoderInput, transcoderOutput);
139141

140142
// Close the output stream

0 commit comments

Comments
 (0)