mwoffliner
mwoffliner copied to clipboard
Incorrect image display in the Gallery
Kiwix extension for FireFox.
If the word thumb
is written in the Photo Gallery, then the image in the ZIM file is displayed with an error (second picture):
And this is what the Gallery in Wikipedia looks like:
@MananJethwani A nice bug for you ;)
will start working on it soon
@kelson42 this is because of different width and height of image at Wikipedia, open the page source and search for Tem2-215
observe that width is 120
but when we fetch the mobile version the same tag has a width 300 same is for the height.
so final point is it's an upstream bug.
@MananJethwani I don't have verified, but please open an upstream bug (an link it here), if the upstream HTML is broken.
@kelson42 done https://phabricator.wikimedia.org/T281125
@MananJethwani @kelson42
The same situation Diego Garcia in ZIM file:
And this is what the Diego Garcia in Wikipedia looks like:
PS: maybe the error has already been fixed, I just can't check.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
https://library.kiwix.org/viewer#wikipedia_ru_all_maxi/A/%D0%A2%D0%AD%D0%9C2 LGTM now. But https://library.kiwix.org/viewer#wikipedia_ru_all_maxi/A/%D0%94%D0%B8%D0%B5%D0%B3%D0%BE-%D0%93%D0%B0%D1%80%D1%81%D0%B8%D1%8F is still wrong.
@pavel-karatsiuba Please do the analysis
From API we are getting images with the bigger size. It is an upstream bug: page with bug We can fix it by adding a function to treat the gallery section.
@pavel-karatsiuba Then please open bug upstream at https://phabricator.wikimedia.org/ and link both tickets together.
@kelson42 Upstream ticket created: https://phabricator.wikimedia.org/T333122
@pavel-karatsiuba Thx, it looks like it will be deprecated by implementing https://github.com/openzim/mwoffliner/issues/1664