Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: download: chapter 73: image 15: invalid JPEG format: short Huffman data #24

Open
DinnerBug opened this issue Jan 11, 2023 · 2 comments

Comments

@DinnerBug
Copy link

I'm trying to donwload Berserk and I get this error when I get to chapter 73 volume 12.

C:\Users\DinnerBug\Downloads\dist-kojirou-windows-amd64>kojirou 801513ba-a712-498c-8f57-cae55b38cc92 -l en --kindle-folder-mode -o C:\Users\DinnerBug\Downloads\dist-kojirou-windows-amd64 --left-to-right ←[4mTitle←[0m: Berserk ←[4mAuthor←[0m: Kentaro Miura and Mori Kouji ←[4mGroups←[0m: ←[31mBand of the Hawks←[0m, ←[34mManga-Sketchbook←[0m, ←[35mEvil Genius←[0m ←[4mChapters←[0m: ←[31m0.1←[0m, ←[31m0.2←[0m, ←[31m0.3←[0m, ←[31m0.4←[0m, ←[31m0.5←[0m, ←[31m0.6←[0m, ←[31m0.7←[0m, ←[31m0.8←[0m, ←[31m0.9←[0m, ←[31m0.10←[0m, ←[31m0.11←[0m, ←[31m0.12←[0m, ←[31m0.13←[0m, ←[31m0.14←[0m, ←[31m0.15←[0m, ←[31m0.16←[0m, ←[31m1←[0m, ←[31m2←[0m, ←[31m3←[0m, ←[31m4←[0m, ←[31m5←[0m, ←[31m6←[0m, ←[31m7←[0m, ←[31m8←[0m, ←[31m9←[0m, ←[31m10←[0m, ←[31m11←[0m, ←[31m12←[0m, ←[31m13←[0m, ←[31m14←[0m, ←[31m15←[0m, ←[31m16←[0m, ←[31m17←[0m, ←[31m18←[0m, ←[31m19←[0m, ←[31m20←[0m, ←[31m21←[0m, ←[31m22←[0m, ←[31m23←[0m, ←[31m24←[0m, ←[31m25←[0m, ←[31m26←[0m, ←[34m27←[0m, ←[34m28←[0m, ←[34m29←[0m, ←[34m30←[0m, ←[34m31←[0m, ←[34m32←[0m, ←[31m33←[0m, ←[31m34←[0m, ←[31m35←[0m, ←[31m36←[0m, ←[31m37←[0m, ←[31m38←[0m, ←[31m39←[0m, ←[31m40←[0m, ←[31m41←[0m, ←[31m42←[0m, ←[31m43←[0m, ←[31m44←[0m, ←[31m45←[0m, ←[31m46←[0m, ←[31m47←[0m, ←[31m48←[0m, ←[31m49←[0m, ←[31m50←[0m, ←[31m51←[0m, ←[31m52←[0m, ←[31m53←[0m, ←[31m54←[0m, ←[31m55←[0m, ←[31m56←[0m, ←[31m57←[0m, ←[31m58←[0m, ←[31m59←[0m, ←[31m60←[0m, ←[31m61←[0m, ←[31m62←[0m, ←[31m63←[0m, ←[31m64←[0m, ←[31m65←[0m, ←[31m66←[0m, ←[31m67←[0m, ←[31m68←[0m, ←[31m69←[0m, ←[31m70←[0m, ←[31m71←[0m, ←[31m72←[0m, ←[31m73←[0m, ←[31m74←[0m, ←[31m75←[0m, ←[31m76←[0m, ←[31m77←[0m, ←[31m78←[0m, ←[31m79←[0m, ←[31m80←[0m, ←[31m81←[0m, ←[31m82←[0m, ←[31m83←[0m, ←[31m84←[0m, ←[31m85←[0m, ←[31m86←[0m, ←[31m87←[0m, ←[31m88←[0m, ←[31m89←[0m, ←[31m90←[0m, ←[31m91←[0m, ←[31m92←[0m, ←[31m93←[0m, ←[31m94←[0m, ←[31m95←[0m, ←[31m96←[0m, ←[31m97←[0m, ←[31m98←[0m, ←[31m99←[0m, ←[35m99.5←[0m, ←[31m100←[0m, ←[31m101←[0m, ←[31m102←[0m, ←[31m103←[0m, ←[31m104←[0m, ←[31m105←[0m, ←[31m106←[0m, ←[31m107←[0m, ←[31m108←[0m, ←[31m109←[0m, ←[31m110←[0m, ←[31m111←[0m, ←[31m112←[0m, ←[31m113←[0m, ←[31m114←[0m, ←[31m115←[0m, ←[31m116←[0m, ←[31m117←[0m, ←[31m118←[0m, ←[31m119←[0m, ←[31m120←[0m, ←[31m121←[0m, ←[31m122←[0m, ←[31m123←[0m, ←[31m124←[0m, ←[31m125←[0m, ←[31m126←[0m, ←[31m127←[0m, ←[31m128←[0m, ←[31m129←[0m, ←[31m130←[0m, ←[31m131←[0m, ←[31m132←[0m, ←[31m133←[0m, ←[31m134←[0m, ←[31m135←[0m, ←[31m136←[0m, ←[31m137←[0m, ←[31m138←[0m, ←[31m139←[0m, ←[31m140←[0m, ←[31m141←[0m, ←[31m142←[0m, ←[31m143←[0m, ←[31m144←[0m, ←[31m145←[0m, ←[31m146←[0m, ←[31m147←[0m, ←[31m148←[0m, ←[31m149←[0m, ←[31m150←[0m, ←[31m151←[0m, ←[31m152←[0m, ←[31m153←[0m, ←[31m154←[0m, ←[31m155←[0m, ←[31m156←[0m, ←[31m157←[0m, ←[31m158←[0m, ←[31m159←[0m, ←[31m160←[0m, ←[31m161←[0m, ←[31m162←[0m, ←[31m163←[0m, ←[31m164←[0m, ←[31m165←[0m, ←[31m166←[0m, ←[31m167←[0m, ←[31m168←[0m, ←[31m169←[0m, ←[31m170←[0m, ←[31m171←[0m, ←[31m172←[0m, ←[31m173←[0m, ←[31m174←[0m, ←[31m175←[0m, ←[31m176←[0m, ←[31m177←[0m, ←[31m178←[0m, ←[31m179←[0m, ←[31m180←[0m, ←[31m181←[0m, ←[31m182←[0m, ←[31m183←[0m, ←[31m184←[0m, ←[31m185←[0m, ←[31m186←[0m, ←[31m187←[0m, ←[31m188←[0m, ←[31m189←[0m, ←[31m190←[0m, ←[31m191←[0m, ←[31m192←[0m, ←[31m193←[0m, ←[31m194←[0m, ←[31m195←[0m, ←[31m196←[0m, ←[31m197←[0m, ←[31m198←[0m, ←[31m199←[0m, ←[31m200←[0m, ←[31m201←[0m, ←[31m202←[0m, ←[31m203←[0m, ←[31m204←[0m, ←[31m205←[0m, ←[31m206←[0m, ←[31m207←[0m, ←[31m208←[0m, ←[31m209←[0m, ←[31m210←[0m, ←[31m211←[0m, ←[31m212←[0m, ←[31m213←[0m, ←[31m214←[0m, ←[31m215←[0m, ←[31m216←[0m, ←[31m217←[0m, ←[31m218←[0m, ←[31m219←[0m, ←[31m220←[0m, ←[31m221←[0m, ←[31m222←[0m, ←[31m223←[0m, ←[31m224←[0m, ←[31m225←[0m, ←[31m226←[0m, ←[31m227←[0m, ←[31m228←[0m, ←[31m229←[0m, ←[31m230←[0m, ←[31m231←[0m, ←[31m232←[0m, ←[31m233←[0m, ←[31m234←[0m, ←[31m235←[0m, ←[31m236←[0m, ←[31m237←[0m, ←[31m238←[0m, ←[31m239←[0m, ←[31m240←[0m, ←[31m241←[0m, ←[31m242←[0m, ←[31m243←[0m, ←[31m244←[0m, ←[31m245←[0m, ←[31m246←[0m, ←[31m247←[0m, ←[31m248←[0m, ←[31m249←[0m, ←[31m250←[0m, ←[31m251←[0m, ←[31m252←[0m, ←[31m253←[0m, ←[31m254←[0m, ←[31m255←[0m, ←[31m256←[0m, ←[31m257←[0m, ←[31m258←[0m, ←[31m259←[0m, ←[31m260←[0m, ←[31m261←[0m, ←[31m262←[0m, ←[31m263←[0m, ←[31m264←[0m, ←[31m265←[0m, ←[31m266←[0m, ←[35m267←[0m, ←[35m268←[0m, ←[35m269←[0m, ←[35m270←[0m, ←[35m271←[0m, ←[35m272←[0m, ←[35m273←[0m, ←[35m274←[0m, ←[35m275←[0m, ←[35m276←[0m, ←[35m277←[0m, ←[35m278←[0m, ←[35m279←[0m, ←[35m280←[0m, ←[35m281←[0m, ←[35m282←[0m, ←[35m283←[0m, ←[35m284←[0m, ←[35m285←[0m, ←[35m286←[0m, ←[35m287←[0m, ←[35m288←[0m, ←[35m289←[0m, ←[35m290←[0m, ←[35m291←[0m, ←[35m292←[0m, ←[35m293←[0m, ←[35m294←[0m, ←[35m295←[0m, ←[35m296←[0m, ←[35m297←[0m, ←[35m298←[0m, ←[35m299←[0m, ←[35m300←[0m, ←[35m301←[0m, ←[35m302←[0m, ←[35m303←[0m, ←[35m304←[0m, ←[35m305←[0m, ←[35m306←[0m, ←[35m307←[0m, ←[35m308←[0m, ←[35m309←[0m, ←[35m310←[0m, ←[35m311←[0m, ←[35m312←[0m, ←[35m313←[0m, ←[35m314←[0m, ←[35m315←[0m, ←[35m316←[0m, ←[35m317←[0m, ←[35m318←[0m, ←[35m319←[0m, ←[35m320←[0m, ←[35m321←[0m, ←[35m322←[0m, ←[35m323←[0m, ←[35m324←[0m, ←[35m325←[0m, ←[35m326←[0m, ←[35m327←[0m, ←[35m328←[0m, ←[35m329←[0m, ←[35m330←[0m, ←[35m331←[0m, ←[35m332←[0m, ←[35m333←[0m, ←[35m334←[0m, ←[35m335←[0m, ←[35m336←[0m, ←[35m337←[0m, ←[35m338←[0m, ←[35m339←[0m, ←[35m340←[0m, ←[35m341←[0m, ←[35m342←[0m, ←[35m343←[0m, ←[35m344←[0m, ←[35m345←[0m, ←[35m346←[0m, ←[35m347←[0m, ←[35m348←[0m, ←[35m349←[0m, ←[35m350←[0m, ←[35m351←[0m, ←[35m352←[0m, ←[35m353←[0m, ←[35m354←[0m, ←[35m355←[0m, ←[35m356.1←[0m, ←[35m356.2←[0m, ←[35m357←[0m, ←[35m358←[0m, ←[35m359←[0m, ←[35m360←[0m, ←[35m361←[0m, ←[35m362←[0m, ←[35m363←[0m, ←[35m364←[0m, ←[35m365←[0m, ←[35m366←[0m, ←[35m367←[0m, ←[35m368←[0m, ←[35m369←[0m, ←[35m370←[0m, ←[35m371←[0m ←[4mDiscontinuities←[0m: 355..356.1 Volume: 1 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 2 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 3 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 4 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 5 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 6 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 7 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 8 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 9 |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 10|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 11|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Skipped | Volume: 12|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌| 218 / 219 | Error: download: chapter 73: image 15: invalid JPEG format: short Huffman data

Thanks

@leotaku
Copy link
Owner

leotaku commented Jan 11, 2023

A similar problem, albeit related to PNG decoding instead of JPEG appears in #6. As I've written there, there's very little I can do to fix issues like this. Images that are "broken", as in, their encoding is not correct according to the standard, can often still be displayed. However, it is also correct behavior for decoder implementations to reject these images. As I use the Go standard library for decoding images, I can not fix this issue here.

As mentioned in the referenced issue, you could either exclude the offending chapter, or report the issue to the scantlation group, who could then fix their image.

@DinnerBug
Copy link
Author

Understood, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants