-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
OPDS Icon is limited #533
Comments
Yes, wee need to put all the illsutrations in the opds feed. @mgautierfr @veloman-yunkan doable? |
The OPDS spec (see https://specs.opds.io/opds-1.2#522-artwork-relations and examples in the spec) suggests that it could be done as follows: <link rel="http://opds-spec.org/image/thumbnail"
href="/meta?name=Illustration_48x48&content=gutenberg_sv_all_2021-05"
type="image/png;width=48;height=48"/>
<link rel="http://opds-spec.org/image/thumbnail"
href="/meta?name=Illustration_64x64&content=gutenberg_sv_all_2021-05"
type="image/png;width=64;height=64"/> I don't see any problem implementing this, given that libzim provides an API for enumerating available illustrations as proposed in my review comment |
@veloman-yunkan We really need that to get proper fancy catalogue. Does the libzim7 delivers what is necessary to extend here the OPDS? |
@rgaudin @mgautierfr After our discussion of last week, we probably need here - as well - a pixel depth indicator? |
@kelson42 Not at the moment. I proposed an enhancement earlier. |
@veloman-yunkan This has been implmented, but still in review. Any chance to get a libkiwix PR using this new API soon? |
The code is now in libzim master. |
@kelson42 @mgautierfr In order to test the fix for this enhancement I will need a ZIM file with multiple illustration entries. How do I create one? |
@veloman-yunkan @mgautierfr There should be already one in the https://github.com/openzim/zim-testing-suite ?! I remember we had to make a new release there before merging the Illustration related PR at openzim/libzim. |
Not with several illustration entries.
Clone openzim/zim-testing-suite, modify the data/scripts, regenerate the zim files, commit everything and make a PR. |
@mgautierfr But is there a tool that can create a ZIM file with several illustration entries? Or a workaround? |
just call addIllustration() multiple times with different sizes |
This is not acceptable as long it requires a custom build of |
Hum, I think I understand what your problem is here ; please confirm:
You could have been a little more explicit 😅 Would it make sense to create an additional many-illustrations zim file (using libzim, not zimwriterfs) just for this use case ? |
At the moment, most ZIM only include a
Favicon
metadata that is 48px squared due to the requirement in the spec and the fact that kiwix-serve has only ever displayed it.Some ZIM don't respect it and include different resolution/form-factor.
With the ability to now use higher definition illustrations via the
Illustration
metadata, it's important those are used when available and pertinent. I suppose kiwix-serve might use it for its homepage redesign.With the global switch to OPDS in readers, it's important that those higher definition images are available through OPDS, to accomodate the platform/reader needs. On a high DPI (retina) display, the 48px is blurry unless scaled down to 24px which is very small.
I have no suggestion on how that should be done. The current node reads as:
The text was updated successfully, but these errors were encountered: