Skip to content

Commit

Permalink
feat(gui): add webp image preview support (PR #2372)
Browse files Browse the repository at this point in the history
* feat(gui): add webp image preview support (#2190)

* fix: resolve spotless check

* remove explicit webp provider register

* Update jadx-gui/src/main/java/jadx/gui/ui/panel/ImagePanel.java

---------

Co-authored-by: Skylot <[email protected]>
  • Loading branch information
MrIkso and skylot authored Dec 18, 2024
1 parent 17695ba commit 2924bb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jadx-core/src/main/java/jadx/api/ResourceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum ResourceType {
XML(".xml"),
ARSC(".arsc"),
FONT(".ttf", ".otf"),
IMG(".png", ".gif", ".jpg"),
IMG(".png", ".gif", ".jpg", ".webp"),
MEDIA(".mp3", ".wav"),
LIB(".so"),
MANIFEST,
Expand Down
1 change: 1 addition & 0 deletions jadx-gui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dependencies {
implementation("com.fifesoft:rsyntaxtextarea:3.5.3")
implementation("org.drjekyll:fontchooser:3.1.0")
implementation("hu.kazocsaba:image-viewer:1.2.3")
implementation("com.twelvemonkeys.imageio:imageio-webp:3.12.0") // WebP support for image viewer

implementation("com.formdev:flatlaf:3.5.4")
implementation("com.formdev:flatlaf-intellij-themes:3.5.4")
Expand Down

0 comments on commit 2924bb2

Please sign in to comment.