Viewing 14 reply threads
  • Author
    Posts
    • #4961
      bubdev
      Member

      Another little bug I just encountered:

      Using a piklist field for featured images (‘_thumbnail_id’), the image shows in full size inside the post edit screen’s sidebar. Only after saving/publishing it resizes appropriately.

      Thanks!
      Stefan

    • #5061
      bubdev
      Member

      Also true for the file uplad field, when picking an image. It shows in full size in the backend until it is published.

    • #5072
      Steve
      Keymaster

      @bubdev– Which version of Piklist are you using? I believe this was fixed in the 0.9.9x branch.

    • #5073
      bubdev
      Member

      I’m using version 0.9.9.6

    • #5111
      Steve
      Keymaster

      @bubdev– I can’t reproduce works for me. Does this also happen in the built-in demos? If so, can you try deactivating some plugins and switch to a default WP theme to see if you still have the issue?

    • #5117
      bubdev
      Member

      Thanks, Steve. Unfortunately the problem remains after a fresh Piklist install (current dev. version), with piklist beeing the only active plugin, the Twenty Fifteen theme active, and inside the demo. So there’s not a single line of code in the mix apart from WordPress itself and Piklist. How’s that possible?

      Attachments:
      You must be logged in to view attached files.
    • #5120
      bubdev
      Member
    • #5122
      Steve
      Keymaster

      In SETTINGS > MEDIA, what dimensions are set for the Thumbnail size?

    • #5123
      bubdev
      Member

      All zero.

    • #5124
      Steve
      Keymaster

      If you want to show a thumbnail size, you need to tell WordPress what the thumbnail size is.

      Try entering, 150 and 150 and check the box to crop. See if that helps.

    • #5125
      bubdev
      Member

      I tried, but nothing has changed. And I’ve never had problems with having everything set to zero. I started doing this years ago to avoid cluttering the uploads folder with duplicates.

    • #5126
      bubdev
      Member

      When image sizes ar set to zero, all images are being scaled down automatically to fit where they’re meant to be.

    • #5130
      Steve
      Keymaster

      The file field gets the image dimensions from wp_get_attachment_image_src. You may want to check what’s being passed here.

    • #5131
      bubdev
      Member

      Looks just fine, I guess:

      array (size=4)
      0 => string ‘http://www.mahlermuseum.dev/wp-content/uploads/wi-01-daruebersprechen.jpg’ (length=73)
      1 => int 128
      2 => int 96
      3 => boolean false

      Hm. I’ve removed everything that’s not WordPress. I’ll check it on another server next.

    • #5132
      bubdev
      Member

      Just added some custom css, that will do for now:

      .piklist-upload-file-preview .attachment,
      .piklist-upload-file-preview .attachment .attachment-preview {
        max-width: 62px;
        max-height: 62px;
      }
Viewing 14 reply threads
  • You must be logged in to reply to this topic.