It's become painful obvious that one of the areas that Drupal needs some work is in it's gallery/photo module. I've gotten a little frustrated an almost abandoned Drupal's module in favor of going to a packaged program. However, that defeats one of the best things about Drupal - tight code integration.
So, i decided to take some time to understand the image.module. I'm not expert but this looks like an awfully large file size for a module. Again, I'm an amateur, so I could be wrong. I would like to see this module become a part of the Drupal core. Image handling is central to any content management server ... and digital asset management is becoming one the key areas of frustration in this space.
I hacked up the image.module as best I could. It doesn't look stellar, but it looks better. I would like to support image pop-ups because fill resolution pictures always destroy css designs. I would rather open the full image outside of the template in a separate window. I got pretty close but was only able to open the thumbnail in a separate window. If someone would like to take this an run with it ... please do.
Anyone interested? A copy of my hacked up image.module is here.
Comments
I think there are big changes coming...
I couldn't find the thread but I think there is a major revamping of the image module going on. I had started to work on some changes myself but stopped as I wanted to wait for the changes. It seems as though they are looking at taking a more 'common infrastructure' approach, providing an image_api of sorts that can then allow module developers to re tool images as they want... wish I could find that thread ...
New image.module
As tatonca pointed out, the image.module is being completely rewritten for 4.6. Drupal will have both an image API for image manipulation, and a new image module as well.
Here is James Walker's announcement on this, on the drupal-devel mailing list.
Moshe is also writing an album module.
I suggest that if you have a test setup, then take the new module for a spin and see what it has and what it doesn't. Also consider submitting patches for the functionality/features you find of interest to others.
--
Consulting: 2bits.com
Personal: Baheyeldin.com
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba
Sweet! Sounds like 4.6 is
Sweet! Sounds like 4.6 is going to be a major upgrade. Thanks for your work on this, walkah.
- matthew | nautis.com
Hmmmm
I hope that the convert works.
I see some testing for me in the near future......
Al
module
So far it the new image module looks nice. Walkah's image module has a built in feature to set albums that is much more intuitive to use. Just dropped the module in the directory and it worked. The built in albums were very easy to configure. There is an upgrade script and instructions which I have not tested yet. Not all features are implemented yet though.
-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
I have Walkha's image module
I have Walkha's image module running on Demolicious if anybody wants to see it in action. The upgrade script worked perfectly on a large database of images.
demolicious | leafish
dylan -
dylan -
looks good. i just flipped over to the new module. how do you determine how many rows and colomns will be displayed per page?
- matthew | nautis.com
There's a "width:30%" in the
There's a "width:30%" in the image.css file that determines how many you get per row. Each image is floated to the left, so a width of 30% allows for 3 images per row, with some extra room to compensate for padding and margins. (I assume?)
demolicious | leafish
Width within image.css not working
Using the latest image.module for Drupal 4.6.
I am getting only one column of thumbnails within the gallery and would really like 3. Using the width:30% within the image.css file does not seem to do the trick. I thought it might be theme related, but switching to a couple different themes I am still getting same problem. I used firefox domi tool to see which css files the gallery points to and it seems that the event module css that I have installed might be taking precedent over the image.css.
Anyone have experience with this?
Are you talking about this
Are you talking about this module? http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/walkah/image/
Or this one?
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/gallery/
walkah
walkah
Not all features are
And will probably be not, unless people like you make *modules* for them. Feel free to make mass_import modules. Or annotate.module or whatever_image.module.
The idea is to keep the image module at its basics.
And if this solved you problem, would you be so kind to report back that it helped? This will help others whom are looking for the same solution.
[Ber | Drupal Services webschuur.com]
To do list
True. I was refering to the todo list. Almost all the features I want/need are implemented. Which is why I have been activly testing it and sending feedback. One item that occurs to me is documentation. I need to test a clean php install on a win32 server. I do not think that GD2 is installed by default with the php win32 installer which may/may not be a problem for some people. That isn't a module problem, merely a documnetation issue....
Off to look at calender and schedule testing....
-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
pop ups
have to agree, and yep we´re running the sandbox image module aswell which works real nice btw so im looking forward to seeing it go "live" for real.
As for being able to set the thumbnails to open the full image in an external window/pop up that would be a very welcome feature, sure creating the feature ourselfs isnt that hard but it´s of course alot better if the tools are built in in the official module, especialy a tool like this that makes more then sense considering how the full sized images will wreck havoc in most designs.
theme
popups should not be hardcoded. You should use the theme functions for that.
And if this solved you problem, would you be so kind to report back that it helped? This will help others whom are looking for the same solution.
[Ber | Drupal Services webschuur.com]