dadler / thumbnail-zoom

Thumbnail Zoom Plus is a Firefox plug-in which shows a full-size image pop-up when you hover over a thumbnail or image link. When you hover your mouse over a thumbnail or an image or video link, the add-on displays the full-size image or video still-frame in a floating window. Supported sites include Amazon, Bing, Facebook, Flickr, Google, IMDb, LinkedIn, Netflix, Pinterest, Reddit, Tumblr, Twitter, Yandex.ru, YouTube, Wikipedia, WordPress, Yahoo Images, and many more.
30 stars 7 forks source link

on imgur.com must hover center of thumb to get full pop-up #185

Closed Jan02 closed 9 years ago

Jan02 commented 9 years ago

On imgur, you have to work too hard for the right image to popup. http://youtu.be/QnV8Hu2_Y-k

Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:34.0) Gecko/20100101 Firefox/34.0

dadler commented 9 years ago

Thanks for the report.

So the problem is that in a grid of medium thumbs such as on the main page imgur.com, hovering the top third of the thumb shows a pop-up which is larger than the thumb, but not at full rez, and which is cropped. Hovering in the middle third of the thumb works. The problem seems to happen only when the thumb has a superimposed text, such as a site name like 9gag.

I'll take a look; until its fixed the workaround is to hover in the middle (from top to bottom) third of the thumb.

Jan02 commented 9 years ago

take a look at the Mouseover Popup Image Viewer userscript, they got that part figured out already https://greasyfork.org/en/scripts/404-mouseover-popup-image-viewer

also: other times the thumbnail (first) image of an album loads instead of the first album image that is bigger sometimes the image isn't even the full thumbnail (or fullsize image, not sure)

Hakkin commented 9 years ago

This is because of the imgur gallery fallback regex, the "og:image" meta tag links to "http://i.imgur.com/xxxxxxx.jpg ?fb" now, before it just linked to the full image. Adding an imgur domain check to that regex and just removing the ?fb seems like the easiest fix.

other times the thumbnail (first) image of an album loads instead of the first album image that is bigger sometimes the image isn't even the full thumbnail (or fullsize image, not sure)

This also has to do with the way the "gallery" fallback works, there's really no good way to check if a gallery is a single image or an album (without loading the page first, it would be possible if multiple requests were allowed), so it can't properly parse all the images in the album and relies on the "og:image" meta tags, which also usually include things like thumbnails for other sites to easily parse, which is why sometimes the album parser picks up different or resized images.