Navigating between images within a post

Thank you so much for your reply

Ok, I am sorry. I was wrong in my first post.

What I meant was :
If there are multiple pictures in one post, click to zoom does not work. it instead goes to the next image in that post.

I have tested this here https://try.discourse.org/t/image-click-to-zoom-test/961
and gives the same result. (2nd post in that thread)

Ah, I understand now. Yes, this has been an “issue” since the lightboxing library was updated back in April. Prior to the update clicking on an image would display the image in its full resolution. However, when adding the ability to move between images in a single post, each half of the image became a click target to move forward or backwards in the sequence of images.

As noted above - this is not an easy issue to fix:

3 个赞

Ok, thank you too for your reply !
I guess i should’ve read a bit better, sorry :blush:

So in short. No solution anytime soon.

We are also having the rotating image issue. Uploaded images turn 90 degrees when posted. I am still looking into that one, but it seems to do with pictures taking by a phone and the orientation data inside the picture.
However i found a thread saying it was fixed in 1.9.x.

Btw: I am just a member on our forum :blush:

1 个赞

As far as I’m aware that one’s been fixed, but if you can reproduce the issue on try please post here in the relevant topic.

1 个赞

这个功能很棒,但有一个缺点,即我们无法将照片缩放到最大尺寸。

当帖子中只有一张图片时,点击灯箱中的图片会以适应屏幕的方式显示。再次点击图片,可以以实际像素大小显示(启用浏览器滚动)。通过点击图片,我可以在适应屏幕和实际像素之间切换。

当帖子中有两张或更多图片时,会启用 magnific 的 gallery 模式。此时,我之前描述的功能就失效了,因为点击图片会显示下一张照片。

是否可以通过某种快速补丁来禁用画廊模式?

您是否有兴趣在 SiteSettings 中将画廊模式设为可选?如果有兴趣,我可以尝试提交一个 PR。

谢谢。

2 个赞

现在还有理由继续开放此问题吗?我觉得我们现在已经能很好地处理了,而且不太清楚这里具体有哪些是#pr-welcome。 (暂时移除此标签)

@Johani

1 个赞

我认为这个话题已经完成了它的使命。这里有三个想法。

  1. 功能:如果帖子有多张图片,在图库中显示它们 - 这早已实现。
    FEATURE: Use image gallery functionality in magnific by gdpelican · Pull Request #4831 · discourse/discourse · GitHub

  2. 错误:在图库中时,点击图片会同时放大并导航到下一张图片。这已在此修复
    UX: improve lightbox gallery zoom/navigation by hnb-ku · Pull Request #13500 · discourse/discourse · GitHub

  3. 功能:如果我在图库中导航到帖子中的最后一张图片,显示下一张帖子的图片。我不支持这个更改,因为它会很令人困惑。

所以,可以关闭这个 :+1:

5 个赞