Skip to content

Commit

Permalink
webp read support
Browse files Browse the repository at this point in the history
flyway migration to regenerate covers for books with first page in webp format
  • Loading branch information
gotson committed Sep 6, 2019
1 parent c18f3a4 commit 12affbe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions komga/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ dependencies {
implementation("net.coobird:thumbnailator:0.4.8")
implementation("com.twelvemonkeys.imageio:imageio-jpeg:3.4.2")
implementation("com.twelvemonkeys.imageio:imageio-tiff:3.4.2")
implementation(files("/libs/webp-imageio-decoder-plugin-0.2.jar"))

runtimeOnly("com.h2database:h2:1.4.199")

Expand Down
Binary file added komga/libs/webp-imageio-decoder-plugin-0.2.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
update BOOK_METADATA
set STATUS = 'UNKNOWN'
where ID in (
select m.id
from BOOK_METADATA m,
BOOK_METADATA_PAGE p
where m.ID = p.BOOK_METADATA_ID
and m.THUMBNAIL is null
and p.NUMBER = 0
and p.MEDIA_TYPE = 'image/webp');

0 comments on commit 12affbe

Please sign in to comment.