Closed kanjieater closed 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.
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
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?
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
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.
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
There's no support for AVIF files unless you have added
libheif.dll
, as explained here: komga.org/docs/guides/image-formats/#advanced-typesJust 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?
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
toheif.dll
, add the folder into PATH, and run Komga with Java 21 +--enable-preview --enable-native-access=ALL-UNNAMED
parametersTested 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
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.
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.
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.
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. Archive contents look fine. Explorer thumbnail works. Comic opens in Komga.
Logs
Komga version
v1.7.1
Operating system
Win 11
Other details
No response
Acknowledgements