After exploring various options of image integration in Drupal, I've come to the conclusion, that the way to go for the project I'm working on is WebFM plus imagecache for scaling/cropping. WebFM is just the thing I'd been looking for to attach Media to Nodes and yet keep a tidy directory structure for handling large amounts of files. So thank you very much for this module!

Now, I think there's still a lot of potential on the user-interface side. One thing that happenes to be a very easy and useful addition is the display of thumbnails for images rather than the default icon. This can be quickly achieved using imagecache.

In the Image Cache settings create a new preset called ›icon‹. Add an action scaling it to 30x30 inside dimensions. Now in the webfm.js file, change line 983 that reads »elImg.setAttribute('src', this.iconDir + '/i.gif');« to »elImg.setAttribute('src', getBaseUrl()+'/files/imagecache/icon/'+this.filepath);«. Reload your Web File Manager and see the magic.

Obviously this not a very elegant solution at this point but it could potentially become a nice add-on. For the static pages this can be easily done in the theming functions but with the javascript files, I don't know how to proceed from here other than making it a patch. Any suggestions and comments are much appreciated.

Comments

robmilne’s picture

That's tres cool - unfortunately the drag-and-drop of an image file creates duplication of the icon, or worse yet, a directory rename can orphan and duplicate an entire tree of icons. A hook_cron to clean up orphans wouldn't be a bad idea but better yet would be a cache linked to fid which would be indifferent to path or filename (and clean-urls for that matter). It would be a significant reworking of imagecache module but it would be a better fit with webfm. I don't like hardcoding paths so the image path would have to be passed to the javascript via an inline javascript function call like getBaseUrl(). I'll definitely take a long second look at imagecache but probably more as a source of ideas for enhancing the module.

robmilne’s picture

Status: Active » Closed (won't fix)

A proper WebFM implementation of this feature is required - I won't be doing this - I am in the process passing the maintenance of module off.

vacilando’s picture

Title: imagecache thumbnail integration » Thumbnail display for image files in WebFM?
Version: 5.x-1.11 » 6.x-2.11
Status: Closed (won't fix) » Active

I've looked everywhere for a way to show image thumbnails when browsing an image directory using WebFM, so that I can easily find those I want to insert to FCK Editor.

I realize that this thread was marked "won't fix" but as it is the closest to what I look for, let me re-open it. I guess there are others looking for such functionality for WebFM.

Any ideas?