No images are shown on hover preview when set "Hover preview style" on a style different by "Original Image". Appear an icon indicates that the link is broken

CommentFileSizeAuthor
link-broken.png3.38 KBcozzamara

Comments

LadyAnna’s picture

I'm seeing the same, if I set the preview to anything but original, I only see the broken link image.

Drupal version: 7.36
Hover preview version: 7.x-1.0-alpha1

Ingvar’s picture

If you use Views - сreate a hidden field with this image and with the necessary style. It works for me.

mattia.cristallo’s picture

same problem.
Fix the bug please.

saurabh.dhariwal’s picture

Here's the work around for your issue.

File Name: hover_preview.module

    if (isset($display['settings']['hover_preview_style']) && !empty($display['settings']['hover_preview_style'])) {
-      $hover_uri = image_style_path($display['settings']['hover_preview_style'], $item['uri']);
+      $hover_uri = image_style_url($display['settings']['hover_preview_style'], $item['uri']);
       $element[$delta]['#attributes']['data-hover-preview'] = file_create_url($hover_uri);
     }

File Name: imgpreview.min.jquery.js

-  .match(/\.(gif|jpe?g|png|bmp)$/i)
+ .match(/\.(gif|jpe?g|png|bmp)/i)

Thanks!

firstlevel’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev

same issue on dp7

Andre-B’s picture

Status: Active » Closed (duplicate)