Git Product home page Git Product logo

Comments (6)

gotson avatar gotson commented on August 16, 2024

would need:

  • startup logs to verify that AVIF is enabled or not
  • logs when generating the thumbnail, check for any error

Komga does not need to decode images when reading with the webreader, the AVIF file is passed as-is if your browser supports it, that's why you can see it when reading.

Komga decodes when generating the thumbnail, the fact that it fails to generate a thumbnail seem to indicate something does not work on your machine, but logs would be needed to confirm.

from komga.

acer1204 avatar acer1204 commented on August 16, 2024

/> would need:

  • startup logs to verify that AVIF is enabled or not
  • logs when generating the thumbnail, check for any error

Komga does not need to decode images when reading with the webreader, the AVIF file is passed as-is if your browser supports it, that's why you can see it when reading.

Komga decodes when generating the thumbnail, the fact that it fails to generate a thumbnail seem to indicate something does not work on your machine, but logs would be needed to confirm.

where can found the startup log?
when i right click komga icon, and show log file , it just get the komga.log.
this file is close komga and delete record, then reopen komga.
komga.log

java.io.IOException: com.github.gotson.nightmonkeys.heif.HeifException: Unsupported feature: Unsupported codec
	at com.github.gotson.nightmonkeys.heif.imageio.plugins.HeifImageReader.read(HeifImageReader.java:118) ~[imageio-heif-0.6.2.jar:0.6.2]
	at net.coobird.thumbnailator.tasks.io.InputStreamImageSource.readImage(Unknown Source) ~[thumbnailator-0.4.20.jar:0.4.20]
	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:99) ~[komga-1.11.1-plain.jar:na]
	at org.gotson.komga.domain.service.BookAnalyzer.generateThumbnail(BookAnalyzer.kt:192) ~[komga-1.11.1-plain.jar:na]
	at org.gotson.komga.domain.service.BookLifecycle.generateThumbnailAndPersist(BookLifecycle.kt:125) ~[komga-1.11.1-plain.jar:na]
	at org.gotson.komga.application.tasks.TaskHandler.handleTask(TaskHandler.kt:95) ~[komga-1.11.1-plain.jar:na]
	at org.gotson.komga.application.tasks.TaskProcessor.takeAndProcess(TaskProcessor.kt:63) ~[komga-1.11.1-plain.jar:na]
	at org.gotson.komga.application.tasks.TaskProcessor.processAvailableTask$lambda$2(TaskProcessor.kt:51) ~[komga-1.11.1-plain.jar:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[na:na]
Caused by: com.github.gotson.nightmonkeys.heif.HeifException: Unsupported feature: Unsupported codec
	at com.github.gotson.nightmonkeys.heif.Heif.check(Heif.java:182) ~[imageio-heif-0.6.2.jar:0.6.2]
	at com.github.gotson.nightmonkeys.heif.Heif.checkError(Heif.java:177) ~[imageio-heif-0.6.2.jar:0.6.2]
	at com.github.gotson.nightmonkeys.heif.Heif.decode(Heif.java:132) ~[imageio-heif-0.6.2.jar:0.6.2]
	at com.github.gotson.nightmonkeys.heif.imageio.plugins.HeifImageReader.read(HeifImageReader.java:116) ~[imageio-heif-0.6.2.jar:0.6.2]
	... 14 common frames omitted

it;s looks show heif.HeifException: Unsupported feature: Unsupported codec.
DLRAW.TO_00001.zip
this is my avif zip with one page.

from komga.

gotson avatar gotson commented on August 16, 2024

where can found the startup log?
when i right click komga icon, and show log file , it just get the komga.log.

It's just the first lines of the log file, but sometimes when log file rolls, it's missing in the file.

The library is loaded properly:

2024-07-17T15:59:27.451+08:00  INFO 21192 --- [main] c.g.g.n.h.i.plugins.HeifImageReaderSpi   : Loaded libheif v1.17.5

2024-07-17T15:59:27.458+08:00  INFO 21192 --- [main] 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/heif-sequence, image/x-pcx, image/heic-sequence, image/avif, image/x-portable-bitmap, image/heif, image/heic, image/x-jb2, image/png, image/pcx, image/x-windows-bmp, image/x-webp, image/jpeg2000, image/jp2, image/x-bmp, image/x-png, image/x-portable-pixmap, image/x-jbig2, image/tiff, image/x-tiff, image/x-portable-anymap, image/jxl]

The issue is in the decoding, could be something wrong with the file or codec. I'll check it out.

from komga.

gotson avatar gotson commented on August 16, 2024

The library works with your test image, so there must be an issue with libheif dll not loading the AOM codec. I don't have a windows machine to troubleshoot though, so there's not much i can do.

from komga.

acer1204 avatar acer1204 commented on August 16, 2024

The library works with your test image, so there must be an issue with libheif dll not loading the AOM codec. I don't have a windows machine to troubleshoot though, so there's not much i can do.

Q1.
Let me test using the Docker version of Komga on Windows 11 to see if the issue is only present in the Windows Store version.

A1.
I have tested the Komga Docker version on Windows 11, and the AVIF zip preview images are working correctly.
Synology docker version working correctly.

It's only failed show preivew cover with windows store version.

Q2,
which version has better performance, the Docker version or the Windows Store version?

from komga.

gotson avatar gotson commented on August 16, 2024

which version has better performance, the Docker version or the Windows Store version?

shouldn't be any difference

from komga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.