Commit d1e7800 1 parent 983ee2a commit d1e7800 Copy full SHA for d1e7800
File tree 1 file changed +3
-1
lines changed
src/main/java/org/geysermc/discordbot/commands
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2020-2022 GeyserMC. http://geysermc.org
2
+ * Copyright (c) 2020-2024 GeyserMC. http://geysermc.org
3
3
*
4
4
* Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
* of this software and associated documentation files (the "Software"), to deal
35
35
import net .dv8tion .jda .api .interactions .commands .build .OptionData ;
36
36
import net .dv8tion .jda .api .utils .FileUpload ;
37
37
import org .apache .batik .anim .dom .SAXSVGDocumentFactory ;
38
+ import org .apache .batik .transcoder .SVGAbstractTranscoder ;
38
39
import org .apache .batik .transcoder .TranscoderException ;
39
40
import org .apache .batik .transcoder .TranscoderInput ;
40
41
import org .apache .batik .transcoder .TranscoderOutput ;
@@ -135,6 +136,7 @@ protected File handle(Member member) {
135
136
136
137
// Convert the svg
137
138
PNGTranscoder pngTranscoder = new PNGTranscoder ();
139
+ pngTranscoder .addTranscodingHint (SVGAbstractTranscoder .KEY_ALLOW_EXTERNAL_RESOURCES , Boolean .TRUE );
138
140
pngTranscoder .transcode (transcoderInput , transcoderOutput );
139
141
140
142
// Close the output stream
You can’t perform that action at this time.
0 commit comments