A preview of coming attractions to ProcessWire’s image fields

This week we have a guest post from Tom Reno (@renobird) showing us some excellent redesign work he is doing for our images field in ProcessWire. We hope to bring this to you soon in ProcessWire 3 and perhaps on the 2.x dev branch as well! –Ryan

Hello all, Tom Reno (Renobird) here. We wanted to give a preview of some ideas I'm working on to enhance the images field in ProcessWire — specifically in grid view. We will start by looking at the benefits and drawbacks of the current image field admin interface, and then take a look at some screenshots showing upgrades to it.

Quick overview of the display options for an image field

List View

This view shows the image/thumbnail, as well as the description and tags fields. If you are using any modules that add fields or cropping options (such as Image Extra or Croppable Image) it displays items added by those modules as well. List view is great, but it has some drawbacks when dealing with a large number of images. Let’s suppose you have a field with 10, 20, 30 images or more. Each image consumes the entire width of the field. If you have custom fields and/or buttons for each image; each entry consumes a lot of vertical space. This makes things like sorting and spotting duplicates a bit time consuming, and with a lot of images, downright tedious.

Grid View

Grid view addresses some of the issues mentioned above by displaying 100px thumbnails of the images. It also supports drag/drop sorting, and provides access to the new image editor when you hover the thumbnail. The drawback to grid view is that you can’t edit any of the image data, mark an image for deletion, or access any options added by other modules without switching back to list view.

OK Reno, show me some mockups!

Below are some preliminary mockups I’ve been working on for improving the grid view. These are all just static images without any working code.

Larger thumbnail size

One of the first things is to increase the thumbnail size from 100px to 130px. That is really just an arbitrary increase. It could end up being a little more or less, but this size worked well for my mockups.


Grid view with larger thumbnails

Hovering a thumbnail

When hovering the thumbnail, there are several key things that appear.

  • Quick look
    The quick look is a tooltip that shows some basic image information. In the mockup you can see there are checkboxes next to description/tags. Those indicate that the fields are not empty. This is just a way to take look at some of the basic information without having to open the editor.

  • Delete
    Mark an image for deletion by clicking the trash can icon in the top left corner.

  • Edit
    Clicking the thumbnail opens the information overlay. More on that below.


Thumbnail hover state

Edit mode

When a thumbnail is clicked, an overlay appears with a preview of the full image, image details, and any fields or buttons associated with the image. Ideally the overlay will work more like a dropdown menu that overlays any images below. Optionally, it could work more like Google image search, where the editor appears in between the rows. Since these are all just mockups; the actual implementation is still open for discussion.


Image editor overlay

Marking an image for deletion

As mentioned above, when hovering a thumbnail, the trash can icon appears in the top left. When checked the image will be marked for deletion. At that point, the border becomes another color (in this case dark red) and the trash can icon is becomes always visible.


Image marked for deletion

I hope you’ve enjoyed this preview. I want to take a moment to acknowledge the excellent ideas and mockups Peter Knight posted. His mockups were a great reference point and inspiration for these changes to the grid view. I’m looking forward to exploring some of his ideas for overall improvements to working with images.

Comments

  • Tom

    Tom

    • 9 years ago
    • 30

    Hey Tom,

    I'm really liking the update, one thing I could consider is I find the "drop zones" quite small and often it's hard to judge where the image is going to be placed when letting go.

    I would be nice to see something like this: http://i.imgur.com/M7gIoKj.jpg

  • Helder Cervantes

    Helder Cervantes

    • 9 years ago
    • 91

    Someone buy Reno a beer. First the awesome theme, now this. Great work!

    If you ever come by Portugal, drinks are on me.

  • Peter

    Peter

    • 9 years ago
    • 20

    Wonderful work. Love the tool tips. What a great Xmas treat :)

  • Tom Reno

    Tom Reno

    • 9 years ago
    • 10

    Thanks all. Continued feedback is welcomed.

    @Tom. I agree. I think Peter Knight has some nice ideas in his mockups. I'll be looking to incorporate some of those ideas for the overall implementation. Including masked file inputs.

  • Tom Reno

    Tom Reno

    • 9 years ago
    • 10

    @Tom, I see what you meant now. Perhaps even just leaving more space between the images will help.

  • Szabesz

    Szabesz

    • 9 years ago
    • 10

    Hi Tom,
    Thank you for all the efforts! I think the "Google image search" idea is not really user friendly solution, generally I do not like it since it pushes the GUI elements apart which slows me down. I like the built in iframe modals. Simple and effective, no need to reinvent the wheel :) The modal could incorporate next/previous buttons so we do not have to close it just to skim through the "records".

  • k07n

    k07n

    • 9 years ago
    • 00

    Nice! Keep going!

  • Jugibur

    Jugibur

    • 9 years ago
    • 00

    Look well-wrought and pleasing!
    My wish is only a select field for the editor of a page, so the developer can present i.e. different classes for aligning or theming or whatever to choose.

  • Pwired

    Pwired

    • 9 years ago
    • 00

    Just noticed about this in a forum post. Didn't know about Reno being such a contributor. Thanks for all these goodies mate.

  • kolewu

    kolewu

    • 9 years ago
    • 10

    Wow, that looks great!

    Please consider the mobile world and the difference with hover handling on iOS and Android.

  • gmclelland

    gmclelland

    • 9 years ago
    • 00

    I like the Google images like edit mode for the images. Looks like it might be possible with just html and css. See http://codepen.io/ciprianionescu/pen/JYPwwL and click on the calendar days for an example.

 

Latest news

  • ProcessWire Weekly #552
    In the 552nd issue of ProcessWire Weekly we'll check out the latest weekly update from Ryan, take a quick look at a new e-commerce solution for ProcessWire, and more. Read on!
    Weekly.pw / 7 December 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH