Hi, I'm currently making a website for an arts-based charity, and I'm using imagefield gallery to show the artwork. Great module by the way. The artists don't want the images of their artwork to be cropped in the gallery thumbnails (fussy, I know), and I'm having a few issues.

I've made an Imagecache preset to resize the image to the thumbnail size, currently 120px in height, and an arbitrary width, depending on the picture. However Imagefield Gallery requires a fixed width and height – I've currently set it to 120x120px. However, this means that when an image is narrower than 120px, there is loads of white space between that thumbnail and the next one.

You can see an example of that happening here: http://79.170.40.163/actionspace.org/artists/artist-tutors/liz-emtage

So what I'm asking (in quite a roundabout way) is, is it possible to get the thumbnail to take it's dimensions from the image? Or is there a way of getting Imagefiled Gallery to take it's thumbnail dimensions from the preset settings in imagecache?

Thanks!

Comments

Anonymous’s picture

Update: I've managed to make it do what I want with a bit of CSS modification – it's a bit hacky and not very flexible, so not an ideal solution. If there's a way I could do it through the module interface, that'd be great...

EclipseGc’s picture

Assigned: Unassigned » EclipseGc
Status: Active » Closed (works as designed)

Rick,

Due to the nature of css floats and other such mechanisms used for the lightbox gallery, I chose not to mess with such things. The objective was always to have a very clean look and feel that didn't require a lot of fiddling to get working. However, I do understand the need to satisfy artistic needs (this module was originally created for an art site) so... you might check out the imagefield crop module. I've NOT used it, I dunno if it will do what you need, but you might check it out, see if it and imagefield_gallery work together nicely, and if it does what you want. Again, I've not played with it so no promises.

Hope that helps,

Eclipse

EclipseGc’s picture

Status: Closed (works as designed) » Closed (fixed)