Convert JPG images to PNG

Minecraft 1.20.3 no longer supports loading JPG images.
This commit is contained in:
Jonas Herzig
2023-12-03 16:28:28 +01:00
parent b8ab7aa5a7
commit 43576efeb3
6 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ public class Utils {
static { static {
Image thumbnail; Image thumbnail;
try { try {
thumbnail = Image.read(getResourceAsStream("/default_thumb.jpg")); thumbnail = Image.read(getResourceAsStream("/default_thumb.png"));
} catch (Exception e) { } catch (Exception e) {
thumbnail = new Image(1, 1); thumbnail = new Image(1, 1);
e.printStackTrace(); e.printStackTrace();

View File

@@ -28,7 +28,7 @@ import net.minecraft.client.texture.NativeImage;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
public class GuiVideoRenderer extends GuiScreen implements Tickable { public class GuiVideoRenderer extends GuiScreen implements Tickable {
private static final Identifier NO_PREVIEW_TEXTURE = new Identifier("replaymod", "logo.jpg"); private static final Identifier NO_PREVIEW_TEXTURE = new Identifier("replaymod", "logo.png");
private final VideoRenderer renderer; private final VideoRenderer renderer;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB