File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,11 @@ void Book::update(const zim::Archive& archive) {
8282 m_size = static_cast <uint64_t >(getArchiveFileSize (archive)) << 10 ;
8383
8484 m_illustrations.clear ();
85- for ( const auto illustrationSize : archive.getIllustrationSizes () ) {
85+ for ( const auto & illustrationInfo : archive.getIllustrationInfos () ) {
8686 const auto illustration = std::make_shared<Illustration>();
87- const zim::Item illustrationItem = archive.getIllustrationItem (illustrationSize);
88- illustration->width = illustration->height = illustrationSize;
87+ const zim::Item illustrationItem = archive.getIllustrationItem (illustrationInfo);
88+ illustration->width = illustrationInfo.width ;
89+ illustration->height = illustrationInfo.height ;
8990 illustration->mimeType = illustrationItem.getMimetype ();
9091 illustration->data = illustrationItem.getData ();
9192 // NOTE: illustration->url is left uninitialized
You can’t perform that action at this time.
0 commit comments