Jump to content

Search the Community

Showing results for tags 'users images resizing'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi all, I'm trying to display a users profile image in a comments list and am not able to resize it. The site is used as an intranet, so there are no guest-users allowed, all users are registered with a role "staff" and have a mandatory imagefield. Using a multi-file image field, I tried the following code inside a function: // who's the author? $cite = $comment->getFormatted('cite'); // get the author and display profile picure (first in set) $userImage = wire('users')->get($cite)->getUnformatted('images')->eq(0)->size(100,100)->url; Without resizing, everything is fine: // get the first image $userImage = wire('users')->get($cite)->getUnformatted('images')->eq(0)->url; // get the second image $userImage = wire('users')->get($cite)->getUnformatted('images')->eq(1)->url; works as expected. I also tried a single-file field but without success either: getting the original image URL works fine, resizing the image doesn’t. Any ideas on that?
×
×
  • Create New...