Cropping Thumbnails, square thumbs

cbrompton - June 17, 2008 - 16:59
Project:Brilliant Gallery
Version:6.x-3.5
Component:Code
Category:feature request
Priority:normal
Assigned:pluess
Status:closed
Description

It would be really nice to see an option to display all the thumbnails with the same aspect ratio. In otherwords, instead of just offering the maximum width of the thumbnail, add an option to support an internal crop.

Thanks

sullenmedia.com

#1

jan.n - September 8, 2008 - 14:59
Title:Just a Suggestion» Cropping Thumbnails, square thumbs
Assigned to:cbrompton» Anonymous

Changed title to better reflect the request

#2

castawaybcn - February 19, 2009 - 17:42

I would also be very interested in this feature!

I am using 6.x-3.0 though

subscribing

#3

domhay - February 22, 2009 - 01:36

I'd also like to see this feature. Subscribing!

#4

nutkenz - February 22, 2009 - 13:46

I'm also very interested

#5

Calymari - March 5, 2009 - 09:24

I would also like to see this feature!

#6

pluess - October 17, 2009 - 12:00
Version:5.x-3.1» 6.x-3.4
Assigned to:Anonymous» pluess

Since I also wanted to have croped thumbnails, I added this to the code. The patch is against 6.x-3.4.

AttachmentSize
brilliant_gallery.patch 7.29 KB

#7

vacilando - October 17, 2009 - 12:52

@pluess, thanks for working on that!

Unfortunately, the -dev code has changed a lot recently (lots of fixes, improvements) -- could I please ask you to roll a patch against that version.
I will then have a look / test and if all fine commit the new version.

#8

balogbence - October 18, 2009 - 16:23

Thanks for the patch pluess, works as expected. Hope it will appear in the next version.

#9

castawaybcn - October 26, 2009 - 17:37

thanks for working in such a needed feature. Unfortunately it does not seem to work at all in my case. It also throws this error in the galeries admin page:

warning: Missing argument 5 for load_dir_to_array(), called in /path/to/my/installation/sites/all/modules/brilliant_gallery/brilliant_gallery.module on line 401 and defined in /path/to/my/installation/sites/all/modules/brilliant_gallery/functions.inc on line 39.

Am I missing some dependencies or configuration options (I did check the crop checkbox and cleared caches just in case)?

EDIT:
updating to 6.x-3.5 fixed it and now it is working as expected. Thanks a lot pluess!!

#10

vacilando - October 24, 2009 - 20:21
Version:6.x-3.4» 6.x-3.x-dev
Status:active» needs review

Thanks again for the initiative and code, pluess. I've implemented it in the current dev version, with some changes (the dimension calculation in load_dir_to_array() needs to be conditional), and just a few whiles ago committed as a new dev version!

Please review and let me know whether things work as expected.

#11

vacilando - October 25, 2009 - 21:51
Version:6.x-3.x-dev» 6.x-3.5
Status:needs review» fixed

Looks good to go. Committed to 6.x-3.5!

#12

System Message - November 9, 2009 - 17:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.