gotson / komga

Media server for comics/mangas/BDs/magazines/eBooks with API, OPDS and Kobo Sync support
https://komga.org
MIT License
3.89k stars 232 forks source link

Thumbnails don't generate for some AVIF comics #1284

Closed kanjieater closed 10 months ago

kanjieater commented 10 months ago

Steps to reproduce

I'm unclear on what it is that's causing this. I'm adding a ton of AVIF cbz's, and some of them aren't generating covers (some are even in the same series, where vol 1 will get a cover and vol 2 won't). Feel free to ping me on discord for any additional info on this.

Expected behavior

Covers should always be generated.

Actual behavior

No covers thumbnails are generated for volumes. image Archive contents look fine. Explorer thumbnail works. Comic opens in Komga. image

Logs

2023-11-06T07:31:34.661-06:00  WARN 372 --- [taskProcessor-3] o.g.k.i.image.ImageAnalyzer              : no reader found
2023-11-06T07:31:34.661-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.domain.service.BookAnalyzer    : Book has 362 pages
2023-11-06T07:31:34.684-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskEmitter  : Sending task: GenerateBookThumbnail(bookId='0E4CM0FYD9BHF', priority='7')
2023-11-06T07:31:34.697-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskEmitter  : Sending task: RefreshBookMetadata(bookId='0E4CM0FYD9BHF', capabilities=[TITLE, SUMMARY, NUMBER, NUMBER_SORT, RELEASE_DATE, AUTHORS, TAGS, ISBN, READ_LISTS, THUMBNAILS, LINKS], priority='7')
2023-11-06T07:31:34.705-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task AnalyzeBook(bookId='0E4CM0FYD9BHF', priority='6') executed in 405.102900ms
2023-11-06T07:31:34.845-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Executing task: GenerateBookThumbnail(bookId='0E4CM0FYD9BHF', priority='7')
2023-11-06T07:31:34.869-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.domain.service.BookLifecycle   : Generate thumbnail and persist for book: Book(name=[20230414][鶴淵けんじ] meth・e・meth  [HARTA COMIX], url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/%5B20230414%5D%5B鶴淵けんじ%5D%20meth・e・meth%20%20%5BHARTA%20COMIX%5D.cbz, fileLastModified=2023-11-06T06:55:00.446, fileSize=55065922, fileHash=2003615e56117b37dda0b2257d569195, number=1, id=0E4CM0FYD9BHF, seriesId=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:10:16.031)
2023-11-06T07:31:34.932-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.domain.service.BookAnalyzer    : Generate thumbnail for book: BookWithMedia(book=Book(name=[20230414][鶴淵けんじ] meth・e・meth  [HARTA COMIX], url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/%5B20230414%5D%5B鶴淵けんじ%5D%20meth・e・meth%20%20%5BHARTA%20COMIX%5D.cbz, fileLastModified=2023-11-06T06:55:00.446, fileSize=55065922, fileHash=2003615e56117b37dda0b2257d569195, number=1, id=0E4CM0FYD9BHF, seriesId=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:10:16.031), media=Media(status=READY, mediaType=application/zip, comment=null, bookId='0E4CM0FYD9BHF', createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:31:34.665))
2023-11-06T07:31:34.944-06:00  WARN 372 --- [taskProcessor-3] o.g.k.i.image.ImageAnalyzer              : no reader found
2023-11-06T07:31:34.945-06:00  WARN 372 --- [taskProcessor-3] o.g.komga.domain.service.BookAnalyzer    : Could not generate thumbnail for book: BookWithMedia(book=Book(name=[20230414][鶴淵けんじ] meth・e・meth  [HARTA COMIX], url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/%5B20230414%5D%5B鶴淵けんじ%5D%20meth・e・meth%20%20%5BHARTA%20COMIX%5D.cbz, fileLastModified=2023-11-06T06:55:00.446, fileSize=55065922, fileHash=2003615e56117b37dda0b2257d569195, number=1, id=0E4CM0FYD9BHF, seriesId=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:10:16.031), media=Media(status=READY, mediaType=application/zip, comment=null, bookId='0E4CM0FYD9BHF', createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:31:34.665))

net.coobird.thumbnailator.tasks.UnsupportedFormatException: No suitable ImageReader found for source data.
    at net.coobird.thumbnailator.tasks.io.InputStreamImageSource.read(Unknown Source) ~[thumbnailator-0.4.20.jar!/:0.4.20]
    at net.coobird.thumbnailator.tasks.SourceSinkThumbnailTask.read(Unknown Source) ~[thumbnailator-0.4.20.jar!/:0.4.20]
    at net.coobird.thumbnailator.Thumbnailator.createThumbnail(Unknown Source) ~[thumbnailator-0.4.20.jar!/:0.4.20]
    at net.coobird.thumbnailator.Thumbnails$Builder.toOutputStream(Unknown Source) ~[thumbnailator-0.4.20.jar!/:0.4.20]
    at org.gotson.komga.infrastructure.image.ImageConverter.resizeImageToByteArray(ImageConverter.kt:63) ~[classes!/:1.7.1]
    at org.gotson.komga.domain.service.BookAnalyzer.generateThumbnail(BookAnalyzer.kt:124) ~[classes!/:1.7.1]
    at org.gotson.komga.domain.service.BookLifecycle.generateThumbnailAndPersist(BookLifecycle.kt:115) ~[classes!/:1.7.1]
    at org.gotson.komga.application.tasks.TaskHandler.handleTask(TaskHandler.kt:96) ~[classes!/:1.7.1]
    at org.gotson.komga.application.tasks.TaskProcessor.takeAndProcess(TaskProcessor.kt:60) ~[classes!/:1.7.1]
    at org.gotson.komga.application.tasks.TaskProcessor.processAvailableTask$lambda$1(TaskProcessor.kt:46) ~[classes!/:1.7.1]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
    at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]

2023-11-06T07:31:34.992-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task GenerateBookThumbnail(bookId='0E4CM0FYD9BHF', priority='7') executed in 146.077400ms
2023-11-06T07:31:35.013-06:00  INFO 372 --- [http-nio-8443-exec-36] o.g.komga.domain.service.BookLifecycle   : House keeping thumbnails for book: 0E4CM0FYD9BHF
2023-11-06T07:31:35.023-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Executing task: RefreshBookMetadata(bookId='0E4CM0FYD9BHF', capabilities=[NUMBER_SORT, SUMMARY, READ_LISTS, LINKS, NUMBER, ISBN, TITLE, TAGS, THUMBNAILS, AUTHORS, RELEASE_DATE], priority='7')
2023-11-06T07:31:35.039-06:00  INFO 372 --- [taskProcessor-3] o.g.k.d.service.BookMetadataLifecycle    : Refresh metadata for book: Book(name=[20230414][鶴淵けんじ] meth・e・meth  [HARTA COMIX], url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/%5B20230414%5D%5B鶴淵けんじ%5D%20meth・e・meth%20%20%5BHARTA%20COMIX%5D.cbz, fileLastModified=2023-11-06T06:55:00.446, fileSize=55065922, fileHash=2003615e56117b37dda0b2257d569195, number=1, id=0E4CM0FYD9BHF, seriesId=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:10:16.031) with capabilities: [NUMBER_SORT, SUMMARY, READ_LISTS, LINKS, NUMBER, ISBN, TITLE, TAGS, THUMBNAILS, AUTHORS, RELEASE_DATE]
2023-11-06T07:31:35.040-06:00  WARN 372 --- [http-nio-8443-exec-36] o.g.komga.domain.service.BookLifecycle   : Thumbnail doesn't exist, removing entry
2023-11-06T07:31:35.123-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskEmitter  : Sending task: RefreshSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='6')
2023-11-06T07:31:35.134-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task RefreshBookMetadata(bookId='0E4CM0FYD9BHF', capabilities=[NUMBER_SORT, SUMMARY, READ_LISTS, LINKS, NUMBER, ISBN, TITLE, TAGS, THUMBNAILS, AUTHORS, RELEASE_DATE], priority='7') executed in 111.552ms
2023-11-06T07:31:35.158-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Executing task: RefreshSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='6')
2023-11-06T07:31:35.184-06:00  INFO 372 --- [taskProcessor-3] o.g.k.d.service.SeriesMetadataLifecycle  : Refresh metadata for series: Series(name=meth・e・meth -メス・メス-, url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/, fileLastModified=2023-11-06T06:54:58.739, id=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, bookCount=1, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:00:35)
2023-11-06T07:31:35.244-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskEmitter  : Sending task: AggregateSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='6')
2023-11-06T07:31:35.255-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task RefreshSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='6') executed in 96.901700ms
2023-11-06T07:31:35.272-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Executing task: AggregateSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='6')
2023-11-06T07:31:35.272-06:00  INFO 372 --- [taskProcessor-3] o.g.k.d.service.SeriesMetadataLifecycle  : Aggregate book metadata for series: Series(name=meth・e・meth -メス・メス-, url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/, fileLastModified=2023-11-06T06:54:58.739, id=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, bookCount=1, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:00:35)
2023-11-06T07:31:35.281-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task AggregateSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='6') executed in 9.518200ms
2023-11-06T07:31:38.689-06:00  INFO 372 --- [http-nio-8443-exec-45] o.g.komga.application.tasks.TaskEmitter  : Sending task: RefreshBookMetadata(bookId='0E4CM0FYD9BHF', capabilities=[TITLE, SUMMARY, NUMBER, NUMBER_SORT, RELEASE_DATE, AUTHORS, TAGS, ISBN, READ_LISTS, THUMBNAILS, LINKS], priority='6')
2023-11-06T07:31:39.863-06:00  INFO 372 --- [http-nio-8443-exec-45] o.g.komga.application.tasks.TaskEmitter  : Sending task: RefreshBookLocalArtwork(bookId='0E4CM0FYD9BHF', priority='6')
2023-11-06T07:31:39.879-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Executing task: RefreshBookMetadata(bookId='0E4CM0FYD9BHF', capabilities=[NUMBER_SORT, SUMMARY, READ_LISTS, LINKS, NUMBER, ISBN, TITLE, TAGS, THUMBNAILS, AUTHORS, RELEASE_DATE], priority='6')
2023-11-06T07:31:39.880-06:00  INFO 372 --- [taskProcessor-3] o.g.k.d.service.BookMetadataLifecycle    : Refresh metadata for book: Book(name=[20230414][鶴淵けんじ] meth・e・meth  [HARTA COMIX], url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/%5B20230414%5D%5B鶴淵けんじ%5D%20meth・e・meth%20%20%5BHARTA%20COMIX%5D.cbz, fileLastModified=2023-11-06T06:55:00.446, fileSize=55065922, fileHash=2003615e56117b37dda0b2257d569195, number=1, id=0E4CM0FYD9BHF, seriesId=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:10:16.031) with capabilities: [NUMBER_SORT, SUMMARY, READ_LISTS, LINKS, NUMBER, ISBN, TITLE, TAGS, THUMBNAILS, AUTHORS, RELEASE_DATE]
2023-11-06T07:31:39.941-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskEmitter  : Sending task: RefreshSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='5')
2023-11-06T07:31:39.953-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task RefreshBookMetadata(bookId='0E4CM0FYD9BHF', capabilities=[NUMBER_SORT, SUMMARY, READ_LISTS, LINKS, NUMBER, ISBN, TITLE, TAGS, THUMBNAILS, AUTHORS, RELEASE_DATE], priority='6') executed in 74.059400ms
2023-11-06T07:31:40.101-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Executing task: RefreshBookLocalArtwork(bookId='0E4CM0FYD9BHF', priority='6')
2023-11-06T07:31:40.102-06:00  INFO 372 --- [taskProcessor-3] o.g.k.d.service.LocalArtworkLifecycle    : Refresh local artwork for book: Book(name=[20230414][鶴淵けんじ] meth・e・meth  [HARTA COMIX], url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/%5B20230414%5D%5B鶴淵けんじ%5D%20meth・e・meth%20%20%5BHARTA%20COMIX%5D.cbz, fileLastModified=2023-11-06T06:55:00.446, fileSize=55065922, fileHash=2003615e56117b37dda0b2257d569195, number=1, id=0E4CM0FYD9BHF, seriesId=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:10:16.031)
2023-11-06T07:31:40.139-06:00  INFO 372 --- [taskProcessor-3] o.g.k.i.m.l.LocalArtworkProvider         : Looking for local thumbnails for book: Book(name=[20230414][鶴淵けんじ] meth・e・meth  [HARTA COMIX], url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/%5B20230414%5D%5B鶴淵けんじ%5D%20meth・e・meth%20%20%5BHARTA%20COMIX%5D.cbz, fileLastModified=2023-11-06T06:55:00.446, fileSize=55065922, fileHash=2003615e56117b37dda0b2257d569195, number=1, id=0E4CM0FYD9BHF, seriesId=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:10:16.031)
2023-11-06T07:31:40.140-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task RefreshBookLocalArtwork(bookId='0E4CM0FYD9BHF', priority='6') executed in 38.862300ms
2023-11-06T07:31:40.195-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Executing task: RefreshSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='5')
2023-11-06T07:31:40.213-06:00  INFO 372 --- [taskProcessor-3] o.g.k.d.service.SeriesMetadataLifecycle  : Refresh metadata for series: Series(name=meth・e・meth -メス・メス-, url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/, fileLastModified=2023-11-06T06:54:58.739, id=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, bookCount=1, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:00:35)
2023-11-06T07:31:40.321-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskEmitter  : Sending task: AggregateSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='5')
2023-11-06T07:31:40.335-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task RefreshSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='5') executed in 138.991300ms
2023-11-06T07:31:40.363-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Executing task: AggregateSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='5')
2023-11-06T07:31:40.365-06:00  INFO 372 --- [taskProcessor-3] o.g.k.d.service.SeriesMetadataLifecycle  : Aggregate book metadata for series: Series(name=meth・e・meth -メス・メス-, url=file:/W:/Collection/シリーズ/meth・e・meth%20-メス・メス-/, fileLastModified=2023-11-06T06:54:58.739, id=0E4CM0FYD9BHE, libraryId=0655D962FQ2XD, bookCount=1, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T07:00:35)
2023-11-06T07:31:40.414-06:00  INFO 372 --- [taskProcessor-3] o.g.komga.application.tasks.TaskHandler  : Task AggregateSeriesMetadata(seriesId='0E4CM0FYD9BHE', priority='5') executed in 51.240700ms
2023-11-06T07:31:43.341-06:00  INFO 372 --- [http-nio-8443-exec-57] o.g.k.domain.service.SeriesLifecycle     : House keeping thumbnails for series: 0E4CMBP0X98Q3
2023-11-06T07:31:43.342-06:00  INFO 372 --- [http-nio-8443-exec-15] o.g.k.domain.service.SeriesLifecycle     : House keeping thumbnails for series: 0E4CMBP0X98Q5
2023-11-06T07:31:43.345-06:00  INFO 372 --- [http-nio-8443-exec-15] o.g.komga.domain.service.BookLifecycle   : House keeping thumbnails for book: 0E4CMBP0X98Q6
2023-11-06T07:31:43.346-06:00  INFO 372 --- [http-nio-8443-exec-57] o.g.komga.domain.service.BookLifecycle   : House keeping thumbnails for book: 0E4CMBP0X98Q4

Komga version

v1.7.1

Operating system

Win 11

Other details

No response

Acknowledgements

gotson commented 10 months ago

try to analyze the books 1 by 1 to check if it's a disk i/o issue, or a book issue. If you still have issues, please provide some of the books that have problems, so i can investigate.

kanjieater commented 10 months ago

I made a dummy book cover image that reproduces the issue. I'll post it.

2023-11-06T13:30:29.826-06:00  INFO 372 --- [taskProcessor-15] o.g.k.d.service.LibraryContentLifecycle  : Empty trash for library: Library(name=1. シリーズ, root=file:/W:/Collection/シリーズ/, importComicInfoBook=true, importComicInfoSeries=true, importComicInfoCollection=true, importComicInfoReadList=true, importComicInfoSeriesAppendVolume=true, importEpubBook=true, importEpubSeries=true, importMylarSeries=true, importLocalArtwork=true, importBarcodeIsbn=true, scanForceModifiedTime=false, scanOnStartup=false, scanInterval=EVERY_6H, scanCbx=true, scanPdf=true, scanEpub=true, scanDirectoryExclusions=[#recycle, @Recycle, @eaDir], repairExtensions=false, convertToCbz=false, emptyTrashAfterScan=true, seriesCover=FIRST, hashFiles=true, hashPages=true, analyzeDimensions=true, oneshotsDirectory=null, unavailableDate=null, id=0655D962FQ2XD, createdDate=2021-09-04T09:00:11, lastModifiedDate=2023-10-13T22:51:30.188)
2023-11-06T13:30:29.828-06:00  INFO 372 --- [taskProcessor-15] o.g.k.domain.service.SeriesLifecycle     : Delete series ids: []
2023-11-06T13:30:29.828-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.domain.service.BookLifecycle   : Delete book ids: []
2023-11-06T13:30:29.851-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.domain.service.BookLifecycle   : Delete book ids: []
2023-11-06T13:30:29.859-06:00  INFO 372 --- [taskProcessor-15] o.g.k.d.s.SeriesCollectionLifecycle      : Deleting empty collections
2023-11-06T13:30:29.860-06:00  INFO 372 --- [taskProcessor-15] o.g.k.domain.service.ReadListLifecycle   : Deleting empty read lists
2023-11-06T13:30:29.861-06:00  INFO 372 --- [taskProcessor-15] o.g.k.d.service.LibraryContentLifecycle  : Library updated in 1m 8.783756800s
2023-11-06T13:30:29.910-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending tasks: [AnalyzeBook(bookId='0E4FDEA1S949V', priority='4')]
2023-11-06T13:30:29.918-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending task: FindBooksToConvert(libraryId='0655D962FQ2XD', priority='0')
2023-11-06T13:30:29.925-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending task: FindBooksWithMissingPageHash(libraryId='0655D962FQ2XD', priority='0')
2023-11-06T13:30:29.933-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending task: FindDuplicatePagesToDelete(libraryId='0655D962FQ2XD', priority='0')
2023-11-06T13:30:29.960-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending tasks: [HashBook(bookId='0E4FDEA1S949V', priority='0')]
2023-11-06T13:30:29.968-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Task ScanLibrary(libraryId='0655D962FQ2XD', scanDeep='false', priority='8') executed in 1m 8.891707100s
2023-11-06T13:30:29.985-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Executing task: RefreshSeriesMetadata(seriesId='0E4CM157X9AKK', priority='4')
2023-11-06T13:30:29.985-06:00  INFO 372 --- [taskProcessor-15] o.g.k.d.service.SeriesMetadataLifecycle  : Refresh metadata for series: Series(name=【創造魔法】を覚えて、万能で最強になりました。, url=file:/W:/Collection/シリーズ/【創造魔法】を覚えて、万能で最強になりました。/, fileLastModified=2023-11-06T13:29:01.919, id=0E4CM157X9AKK, libraryId=0655D962FQ2XD, bookCount=1, deletedDate=null, oneshot=false, createdDate=2023-11-06T07:00:35, lastModifiedDate=2023-11-06T13:30:22.476)
2023-11-06T13:30:30.010-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending task: AggregateSeriesMetadata(seriesId='0E4CM157X9AKK', priority='4')
2023-11-06T13:30:30.021-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Task RefreshSeriesMetadata(seriesId='0E4CM157X9AKK', priority='4') executed in 36.243300ms
2023-11-06T13:30:30.155-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Executing task: RefreshBookMetadata(bookId='0E4FDEA1S949V', capabilities=[NUMBER_SORT, NUMBER], priority='4')
2023-11-06T13:30:30.255-06:00  INFO 372 --- [taskProcessor-15] o.g.k.d.service.BookMetadataLifecycle    : Refresh metadata for book: Book(name=を覚えて、万能で最強になりました。 - 第01巻, url=file:/W:/Collection/シリーズ/を覚えて、万能で最強になりました。/を覚えて、万能で最強になりました。%20-%20第01巻.cbz, fileLastModified=2023-11-06T13:29:15.008, fileSize=460658, fileHash=, number=1, id=0E4FDEA1S949V, seriesId=0E4FDEA1S949T, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:24.839) with capabilities: [NUMBER_SORT, NUMBER]
2023-11-06T13:30:30.337-06:00  INFO 372 --- [taskProcessor-15] o.g.k.d.service.BookMetadataLifecycle    : Provider does not support requested capabilities, skipping: IsbnBarcodeProvider
2023-11-06T13:30:30.337-06:00  INFO 372 --- [taskProcessor-15] o.g.k.d.service.BookMetadataLifecycle    : Provider does not support requested capabilities, skipping: EpubMetadataProvider
2023-11-06T13:30:30.337-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending task: RefreshSeriesMetadata(seriesId='0E4FDEA1S949T', priority='3')
2023-11-06T13:30:30.348-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Task RefreshBookMetadata(bookId='0E4FDEA1S949V', capabilities=[NUMBER_SORT, NUMBER], priority='4') executed in 192.736800ms
2023-11-06T13:30:30.377-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Executing task: AnalyzeBook(bookId='0E4FDEA1S949V', priority='4')
2023-11-06T13:30:30.386-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.domain.service.BookLifecycle   : Analyze and persist book: Book(name=を覚えて、万能で最強になりました。 - 第01巻, url=file:/W:/Collection/シリーズ/を覚えて、万能で最強になりました。/を覚えて、万能で最強になりました。%20-%20第01巻.cbz, fileLastModified=2023-11-06T13:29:15.008, fileSize=460658, fileHash=, number=1, id=0E4FDEA1S949V, seriesId=0E4FDEA1S949T, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:24.839)
2023-11-06T13:30:30.394-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.domain.service.BookAnalyzer    : Trying to analyze book: Book(name=を覚えて、万能で最強になりました。 - 第01巻, url=file:/W:/Collection/シリーズ/を覚えて、万能で最強になりました。/を覚えて、万能で最強になりました。%20-%20第01巻.cbz, fileLastModified=2023-11-06T13:29:15.008, fileSize=460658, fileHash=, number=1, id=0E4FDEA1S949V, seriesId=0E4FDEA1S949T, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:24.839)
2023-11-06T13:30:30.395-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.domain.service.BookAnalyzer    : Detected media type: application/zip
2023-11-06T13:30:30.397-06:00  WARN 372 --- [taskProcessor-15] o.g.k.i.image.ImageAnalyzer              : no reader found
2023-11-06T13:30:30.397-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.domain.service.BookAnalyzer    : Book has 1 pages
2023-11-06T13:30:30.411-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending task: GenerateBookThumbnail(bookId='0E4FDEA1S949V', priority='5')
2023-11-06T13:30:30.423-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending task: RefreshBookMetadata(bookId='0E4FDEA1S949V', capabilities=[TITLE, SUMMARY, NUMBER, NUMBER_SORT, RELEASE_DATE, AUTHORS, TAGS, ISBN, READ_LISTS, THUMBNAILS, LINKS], priority='5')
2023-11-06T13:30:30.434-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Task AnalyzeBook(bookId='0E4FDEA1S949V', priority='4') executed in 56.345400ms
2023-11-06T13:30:30.454-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Executing task: GenerateBookThumbnail(bookId='0E4FDEA1S949V', priority='5')
2023-11-06T13:30:30.456-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.domain.service.BookLifecycle   : Generate thumbnail and persist for book: Book(name=を覚えて、万能で最強になりました。 - 第01巻, url=file:/W:/Collection/シリーズ/を覚えて、万能で最強になりました。/を覚えて、万能で最強になりました。%20-%20第01巻.cbz, fileLastModified=2023-11-06T13:29:15.008, fileSize=460658, fileHash=, number=1, id=0E4FDEA1S949V, seriesId=0E4FDEA1S949T, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:24.839)
2023-11-06T13:30:30.464-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.domain.service.BookAnalyzer    : Generate thumbnail for book: BookWithMedia(book=Book(name=を覚えて、万能で最強になりました。 - 第01巻, url=file:/W:/Collection/シリーズ/を覚えて、万能で最強になりました。/を覚えて、万能で最強になりました。%20-%20第01巻.cbz, fileLastModified=2023-11-06T13:29:15.008, fileSize=460658, fileHash=, number=1, id=0E4FDEA1S949V, seriesId=0E4FDEA1S949T, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:24.839), media=Media(status=READY, mediaType=application/zip, comment=null, bookId='0E4FDEA1S949V', createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:30.403))
2023-11-06T13:30:30.465-06:00  WARN 372 --- [taskProcessor-15] o.g.k.i.image.ImageAnalyzer              : no reader found
2023-11-06T13:30:30.466-06:00  WARN 372 --- [taskProcessor-15] o.g.komga.domain.service.BookAnalyzer    : Could not generate thumbnail for book: BookWithMedia(book=Book(name=を覚えて、万能で最強になりました。 - 第01巻, url=file:/W:/Collection/シリーズ/を覚えて、万能で最強になりました。/を覚えて、万能で最強になりました。%20-%20第01巻.cbz, fileLastModified=2023-11-06T13:29:15.008, fileSize=460658, fileHash=, number=1, id=0E4FDEA1S949V, seriesId=0E4FDEA1S949T, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:24.839), media=Media(status=READY, mediaType=application/zip, comment=null, bookId='0E4FDEA1S949V', createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:30.403))

net.coobird.thumbnailator.tasks.UnsupportedFormatException: No suitable ImageReader found for source data.
    at net.coobird.thumbnailator.tasks.io.InputStreamImageSource.read(Unknown Source) ~[thumbnailator-0.4.20.jar!/:0.4.20]
    at net.coobird.thumbnailator.tasks.SourceSinkThumbnailTask.read(Unknown Source) ~[thumbnailator-0.4.20.jar!/:0.4.20]
    at net.coobird.thumbnailator.Thumbnailator.createThumbnail(Unknown Source) ~[thumbnailator-0.4.20.jar!/:0.4.20]
    at net.coobird.thumbnailator.Thumbnails$Builder.toOutputStream(Unknown Source) ~[thumbnailator-0.4.20.jar!/:0.4.20]
    at org.gotson.komga.infrastructure.image.ImageConverter.resizeImageToByteArray(ImageConverter.kt:63) ~[classes!/:1.7.1]
    at org.gotson.komga.domain.service.BookAnalyzer.generateThumbnail(BookAnalyzer.kt:124) ~[classes!/:1.7.1]
    at org.gotson.komga.domain.service.BookLifecycle.generateThumbnailAndPersist(BookLifecycle.kt:115) ~[classes!/:1.7.1]
    at org.gotson.komga.application.tasks.TaskHandler.handleTask(TaskHandler.kt:96) ~[classes!/:1.7.1]
    at org.gotson.komga.application.tasks.TaskProcessor.takeAndProcess(TaskProcessor.kt:60) ~[classes!/:1.7.1]
    at org.gotson.komga.application.tasks.TaskProcessor.processAvailableTask$lambda$1(TaskProcessor.kt:46) ~[classes!/:1.7.1]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
    at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]

2023-11-06T13:30:30.502-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Task GenerateBookThumbnail(bookId='0E4FDEA1S949V', priority='5') executed in 47.693200ms
2023-11-06T13:30:30.524-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskHandler  : Executing task: RefreshBookMetadata(bookId='0E4FDEA1S949V', capabilities=[NUMBER_SORT, SUMMARY, READ_LISTS, LINKS, NUMBER, ISBN, TITLE, TAGS, THUMBNAILS, AUTHORS, RELEASE_DATE], priority='5')
2023-11-06T13:30:30.525-06:00  INFO 372 --- [taskProcessor-15] o.g.k.d.service.BookMetadataLifecycle    : Refresh metadata for book: Book(name=を覚えて、万能で最強になりました。 - 第01巻, url=file:/W:/Collection/シリーズ/を覚えて、万能で最強になりました。/を覚えて、万能で最強になりました。%20-%20第01巻.cbz, fileLastModified=2023-11-06T13:29:15.008, fileSize=460658, fileHash=, number=1, id=0E4FDEA1S949V, seriesId=0E4FDEA1S949T, libraryId=0655D962FQ2XD, deletedDate=null, oneshot=false, createdDate=2023-11-06T13:30:22, lastModifiedDate=2023-11-06T13:30:24.839) with capabilities: [NUMBER_SORT, SUMMARY, READ_LISTS, LINKS, NUMBER, ISBN, TITLE, TAGS, THUMBNAILS, AUTHORS, RELEASE_DATE]
2023-11-06T13:30:30.535-06:00  INFO 372 --- [http-nio-8443-exec-74] o.g.komga.domain.service.BookLifecycle   : House keeping thumbnails for book: 0E4FDEA1S949V
2023-11-06T13:30:30.537-06:00  INFO 372 --- [taskProcessor-15] o.g.komga.application.tasks.TaskEmitter  : Sending task: RefreshSeriesMetadata(seriesId='0E4FDEA1S949T', priority='4')
2023-11-06T13:30:30.546-06:00  WARN 372 --- [http-nio-8443-exec-74] o.g.komga.domain.service.BookLifecycle   : Thumbnail doesn't exist, removing entry

を覚えて、万能で最強になりました。 - 第01巻.zip

gotson commented 10 months ago

The NightMonkeys library has no problem decoding this file.

You mention you are on Win11, how did you install or how do you run Komga?

kanjieater commented 10 months ago

I use nssm to run the equivalent of C:\Program Files\Java\jdk-17\bin\javaw.exe -jar -Xmx2g C:\Users\ke\komga\komga.jar

Just to be clear, the comic does open and read fine in the web reader despite the thumbnail failing

gotson commented 10 months ago

There's no support for AVIF files unless you have added libheif.dll, as explained here: https://komga.org/docs/guides/image-formats/#advanced-types

Just to be clear, the comic does open and read fine in the web reader despite the thumbnail failing

This is unrelated. The webreader can detect if your browser can Decode AVIF files, and Komga will pass raw AVIF files without decoding to the browser.

On startup Komga will report which image formats it can read in the logs, something like:

2023-11-07T09:59:31.487+08:00  INFO 14521 --- [restartedMain] c.g.g.n.j.i.plugins.JxlImageReaderSpi    : This plugin only supports Java 21, plugin will be disabled
2023-11-07T09:59:31.488+08:00  INFO 14521 --- [restartedMain] c.g.g.n.h.i.plugins.HeifImageReaderSpi   : This plugin only supports Java 21, plugin will be disabled
2023-11-07T09:59:31.496+08:00  INFO 14521 --- [restartedMain] o.g.k.i.image.ImageConverter             : Supported read formats: [JPG, JPEG 2000, tiff, wbp, bigtiff, bmp, PCX, gif, WBMP, PNG, RAW, JPEG, PNM, BigTIFF, tif, TIFF, jpeg, wbmp, jpeg-lossless, jbig2, jpg, JPEG2000, WBP, BMP, pcx, GIF, png, BIGTIFF, raw, JPEG-LOSSLESS, webp, JBIG2, pnm, TIF, WEBP, jpeg2000, jpeg 2000]
2023-11-07T09:59:31.497+08:00  INFO 14521 --- [restartedMain] o.g.k.i.image.ImageConverter             : Supported read mediaTypes: [image/vnd.wap.wbmp, image/jpeg, image/x-portable-graymap, image/bmp, image/x-windows-pcx, image/gif, image/x-pc-paintbrush, image/x-raw, image/webp, image/x-pcx, image/x-portable-bitmap, image/png, image/x-jb2, image/pcx, image/x-windows-bmp, image/x-webp, image/jpeg2000, image/x-bmp, image/jp2, image/x-png, image/x-portable-pixmap, image/tiff, image/x-tiff, image/x-jbig2, image/x-portable-anymap]

To me it's expected that it does not work, since you most likely don't have libheif on the library path.

noaione commented 10 months ago

You can install GIMP and copy the following files from GIMP 2/bin into another folder:

libgcc_s_seh-1.dll
libwinpthread-1.dll
libstdc++-6.dll
libaom.dll
libdav1d-7.dll / libdavid.dll
libde265-0.dll
libjpeg-8.dll
libopenjp2-7.dll
rav1e.dll
libsharpyuv-0.dll
libSvtAv1Enc.dll
libx265.dll
zlib1.dll

Rename libheif.dll to heif.dll, add the folder into PATH, and run Komga with Java 21 + --enable-preview --enable-native-access=ALL-UNNAMED parameters

Tested it just now and it loaded the HEIF library just fine.

> $env:PATH = "I:\Work\Komga\Upstream\lib;$env:PATH"
> java -Xmx4G --enable-preview --enable-native-access=ALL-UNNAMED -jar .\komga-1.7.1.jar
 ____  __.
|    |/ _|____   _____    _________
|      < /  _ \ /     \  / ___\__  \
|    |  (  <_> )  Y Y  \/ /_/  > __ \_
|____|__ \____/|__|_|  /\___  (____  /
        \/           \//_____/     \/

Version: 1.7.1

2023-11-08T08:37:42.527+07:00  INFO 33176 --- [           main] org.gotson.komga.ApplicationKt           : Starting ApplicationKt v1.7.1 using Java 21 with PID 33176 (I:\Work\Komga\Upstream\komga-1.7.1.jar started by N4O in I:\Work\Komga\Upstream)
2023-11-08T08:37:42.538+07:00  INFO 33176 --- [           main] org.gotson.komga.ApplicationKt           : No active profile set, falling back to 1 default profile: "default"
[...]
2023-11-08T08:37:49.055+07:00  INFO 33176 --- [           main] c.g.g.n.j.i.plugins.JxlImageReaderSpi    : Loaded libjxl v0.8.2
2023-11-08T08:37:49.144+07:00  INFO 33176 --- [           main] c.g.g.n.h.i.plugins.HeifImageReaderSpi   : Loaded libheif v1.17.3
2023-11-08T08:37:49.168+07:00  INFO 33176 --- [           main] o.g.k.i.image.ImageConverter             : Supported read formats: [JPG, JPEG 2000, tiff, wbp, bmp, PCX, bigtiff, gif, WBMP, PNG, RAW, JPEG, AVIF, PNM, BigTIFF, tif, TIFF, jpeg, wbmp, jxl, jpeg-lossless, jbig2, jpg, JPEG2000, WBP, BMP, pcx, GIF, Jpeg XL, png, raw, BIGTIFF, JPEG-LOSSLESS, webp, JBIG2, pnm, TIF, WEBP, jpeg2000, HEIC, jpeg 2000, HEIF]
2023-11-08T08:37:49.169+07:00  INFO 33176 --- [           main] o.g.k.i.image.ImageConverter             : Supported read mediaTypes: [image/vnd.wap.wbmp, image/jpeg, image/x-portable-graymap, image/bmp, image/gif, image/x-windows-pcx, image/x-pc-paintbrush, image/x-raw, image/webp, image/heif-sequence, image/x-pcx, image/heic-sequence, image/avif, image/x-portable-bitmap, image/heif, image/heic, image/png, image/x-jb2, image/pcx, image/x-windows-bmp, image/x-webp, image/jpeg2000, image/x-bmp, image/jp2, image/x-png, image/x-portable-pixmap, image/tiff, image/x-tiff, image/x-jbig2, image/x-portable-anymap, image/jxl]
2023-11-08T08:37:49.170+07:00  INFO 33176 --- [           main] o.g.k.i.image.ImageConverter             : Supported write formats: [JPEG 2000, JPG, tiff, PCX, bigtiff, bmp, gif, WBMP, PNG, RAW, JPEG, PNM, BigTIFF, tif, TIFF, wbmp, jpeg, jpg, JPEG2000, pcx, BMP, GIF, png, raw, BIGTIFF, pnm, TIF, jpeg2000, jpeg 2000]
2023-11-08T08:37:49.171+07:00  INFO 33176 --- [           main] o.g.k.i.image.ImageConverter             : Supported write mediaTypes: [image/vnd.wap.wbmp, image/png, image/jpeg, image/x-portable-graymap, image/pcx, image/bmp, image/x-windows-pcx, image/gif, image/x-windows-bmp, image/x-pc-paintbrush, image/jpeg2000, image/x-raw, image/x-pcx, image/jp2, image/x-bmp, image/x-png, image/x-portable-bitmap, image/x-portable-pixmap, image/tiff, image/x-tiff, image/x-portable-anymap]

Edit Tested again with GIMP latest since the one I'm using has outdated lib, also updated the list of files for GIMP 2.10.36

kanjieater commented 10 months ago

There's no support for AVIF files unless you have added libheif.dll, as explained here: komga.org/docs/guides/image-formats/#advanced-types

Just to be clear, the comic does open and read fine in the web reader despite the thumbnail failing

This is unrelated. The webreader can detect if your browser can Decode AVIF files, and Komga will pass raw AVIF files without decoding to the browser.

On startup Komga will report which image formats it can read in the logs, something like:

2023-11-07T09:59:31.487+08:00  INFO 14521 --- [restartedMain] c.g.g.n.j.i.plugins.JxlImageReaderSpi    : This plugin only supports Java 21, plugin will be disabled
2023-11-07T09:59:31.488+08:00  INFO 14521 --- [restartedMain] c.g.g.n.h.i.plugins.HeifImageReaderSpi   : This plugin only supports Java 21, plugin will be disabled
2023-11-07T09:59:31.496+08:00  INFO 14521 --- [restartedMain] o.g.k.i.image.ImageConverter             : Supported read formats: [JPG, JPEG 2000, tiff, wbp, bigtiff, bmp, PCX, gif, WBMP, PNG, RAW, JPEG, PNM, BigTIFF, tif, TIFF, jpeg, wbmp, jpeg-lossless, jbig2, jpg, JPEG2000, WBP, BMP, pcx, GIF, png, BIGTIFF, raw, JPEG-LOSSLESS, webp, JBIG2, pnm, TIF, WEBP, jpeg2000, jpeg 2000]
2023-11-07T09:59:31.497+08:00  INFO 14521 --- [restartedMain] o.g.k.i.image.ImageConverter             : Supported read mediaTypes: [image/vnd.wap.wbmp, image/jpeg, image/x-portable-graymap, image/bmp, image/x-windows-pcx, image/gif, image/x-pc-paintbrush, image/x-raw, image/webp, image/x-pcx, image/x-portable-bitmap, image/png, image/x-jb2, image/pcx, image/x-windows-bmp, image/x-webp, image/jpeg2000, image/x-bmp, image/jp2, image/x-png, image/x-portable-pixmap, image/tiff, image/x-tiff, image/x-jbig2, image/x-portable-anymap]

To me it's expected that it does not work, since you most likely don't have libheif on the library path.

I had no idea about the supplying your own library thing or the docs page - sorry about that. The log you pointed me to is useful - thanks. c.g.g.n.h.i.plugins.HeifImageReaderSpi : This plugin only supports Java 21, plugin will be disabled Does this mean it would work if I just run komga with Java 21?

What's more surprising to me is that thumbnails works at all for avif, but only sometimes?

kanjieater commented 10 months ago

Your method worked. I attached the zip if anyone wants to save themselves the trouble of manually grabbing the 14 needed files from gimp. libs.zip

You can install GIMP and copy the following files from GIMP 2/bin into another folder:

libgcc_s_seh-1.dll
libwinpthread-1.dll
libstdc++-6.dll
libaom.dll
libdav1d-7.dll / libdavid.dll
libde265-0.dll
libjpeg-8.dll
libopenjp2-7.dll
rav1e.dll
libsharpyuv-0.dll
libSvtAv1Enc.dll
libx265.dll
zlib1.dll

Rename libheif.dll to heif.dll, add the folder into PATH, and run Komga with Java 21 + --enable-preview --enable-native-access=ALL-UNNAMED parameters

Tested it just now and it loaded the HEIF library just fine.

> $env:PATH = "I:\Work\Komga\Upstream\lib;$env:PATH"
> java -Xmx4G --enable-preview --enable-native-access=ALL-UNNAMED -jar .\komga-1.7.1.jar
 ____  __.
|    |/ _|____   _____    _________
|      < /  _ \ /     \  / ___\__  \
|    |  (  <_> )  Y Y  \/ /_/  > __ \_
|____|__ \____/|__|_|  /\___  (____  /
        \/           \//_____/     \/

Version: 1.7.1

2023-11-08T08:37:42.527+07:00  INFO 33176 --- [           main] org.gotson.komga.ApplicationKt           : Starting ApplicationKt v1.7.1 using Java 21 with PID 33176 (I:\Work\Komga\Upstream\komga-1.7.1.jar started by N4O in I:\Work\Komga\Upstream)
2023-11-08T08:37:42.538+07:00  INFO 33176 --- [           main] org.gotson.komga.ApplicationKt           : No active profile set, falling back to 1 default profile: "default"
[...]
2023-11-08T08:37:49.055+07:00  INFO 33176 --- [           main] c.g.g.n.j.i.plugins.JxlImageReaderSpi    : Loaded libjxl v0.8.2
2023-11-08T08:37:49.144+07:00  INFO 33176 --- [           main] c.g.g.n.h.i.plugins.HeifImageReaderSpi   : Loaded libheif v1.17.3
2023-11-08T08:37:49.168+07:00  INFO 33176 --- [           main] o.g.k.i.image.ImageConverter             : Supported read formats: [JPG, JPEG 2000, tiff, wbp, bmp, PCX, bigtiff, gif, WBMP, PNG, RAW, JPEG, AVIF, PNM, BigTIFF, tif, TIFF, jpeg, wbmp, jxl, jpeg-lossless, jbig2, jpg, JPEG2000, WBP, BMP, pcx, GIF, Jpeg XL, png, raw, BIGTIFF, JPEG-LOSSLESS, webp, JBIG2, pnm, TIF, WEBP, jpeg2000, HEIC, jpeg 2000, HEIF]
2023-11-08T08:37:49.169+07:00  INFO 33176 --- [           main] o.g.k.i.image.ImageConverter             : Supported read mediaTypes: [image/vnd.wap.wbmp, image/jpeg, image/x-portable-graymap, image/bmp, image/gif, image/x-windows-pcx, image/x-pc-paintbrush, image/x-raw, image/webp, image/heif-sequence, image/x-pcx, image/heic-sequence, image/avif, image/x-portable-bitmap, image/heif, image/heic, image/png, image/x-jb2, image/pcx, image/x-windows-bmp, image/x-webp, image/jpeg2000, image/x-bmp, image/jp2, image/x-png, image/x-portable-pixmap, image/tiff, image/x-tiff, image/x-jbig2, image/x-portable-anymap, image/jxl]
2023-11-08T08:37:49.170+07:00  INFO 33176 --- [           main] o.g.k.i.image.ImageConverter             : Supported write formats: [JPEG 2000, JPG, tiff, PCX, bigtiff, bmp, gif, WBMP, PNG, RAW, JPEG, PNM, BigTIFF, tif, TIFF, wbmp, jpeg, jpg, JPEG2000, pcx, BMP, GIF, png, raw, BIGTIFF, pnm, TIF, jpeg2000, jpeg 2000]
2023-11-08T08:37:49.171+07:00  INFO 33176 --- [           main] o.g.k.i.image.ImageConverter             : Supported write mediaTypes: [image/vnd.wap.wbmp, image/png, image/jpeg, image/x-portable-graymap, image/pcx, image/bmp, image/x-windows-pcx, image/gif, image/x-windows-bmp, image/x-pc-paintbrush, image/jpeg2000, image/x-raw, image/x-pcx, image/jp2, image/x-bmp, image/x-png, image/x-portable-bitmap, image/x-portable-pixmap, image/tiff, image/x-tiff, image/x-portable-anymap]

Edit Tested again with GIMP latest since the one I'm using has outdated lib, also updated the list of files for GIMP 2.10.36

gotson commented 10 months ago

Does this mean it would work if I just run komga with Java 21?

you need more than that, read the docs:

When using the jar, you will need to provide the native libraries yourself, and run Java with the correct arguments. You can check for more details here.

What's more surprising to me is that thumbnails works at all for avif, but only sometimes?

they are probably not AVIF, just have the extension but may be JPEG or other.

kanjieater commented 10 months ago

Hmm yeah they may have been added by Komf or sidecars - I'm not sure. Thanks for the help. I'm using the libraries above instead of nightmonkeys as I couldn't figure out how to run that from source to get it working from the docs as quickly as the gimp method.

gotson commented 10 months ago

I'm using the libraries above instead of nightmonkeys

NightMonkeys uses those libraries. You just need to provide them that's all, which is what you did.