Hi,
Thanks to dropy to provide 2 excellent modules like imagecache and imagefield which, if I remember well, never miss a drupal installation I made. ^^
Now, I would like to go further int he imagecache integration of the website. To give the possibility to total HTML newbie to upload image and generate thumbnail with imagecache, and open the big one with lightbox.
There are several to create thumbnail for your pictures.
- Install image module and image attach. By theming these modules it is possible to generate imagecache thumbnail and automatically add the link for lightbox (not sure I never used images as node, but I think it's possible)
- With a WYSIWYG editor, it is possible to generate thumbnail of the size you want but it involve you upload the image, create thumbnail, add the image thumbnail in the content, add a link on this image that point to the full size image, add the rel attribute you want for lightbox, thickbox or other...
- Add them manually by calling imagecache API. But it involve you work with php filter enabled
So, except the first one that oblige to use image as node, which is not always logical, there is no simple way to automatically create thumbnail in your nodes.
The feature request is about creating a filter for imagecache, a thing you could put in your content that will allow you to generate imagecache without beeing obliged to put PHP on.
example :
[imagecache|/files/image/big.jpg|my_preset|link,rel="lightbox"]
imagecache : declare the filter
/files/image/big.jpg : the link to you full sized image
my_preset : the preset of imagecache you want to apply on
link : if you specify a link, the imagecache will link to the full sized image. If you specify an attribute for the link as my example show to optionaly add a class or a rel attributes to call a javascript tool like thickbox or lightbox quite easily.
If I create this feature request is to discuss about this idea.
- Is there a way to easiy add imagecache to content (without image module) that I don't know ?
- It is on the battleplan of somebody, if yes, could I help and could I see the status of the implementation ?
- Do you think filter is the way to go to do that ?
- Do you think this idea is usefull
If it's usefull, is not made, is not planed to be, I can work on it, but I want to be sure to not work for nothing before.
Comments
Comment #1
dopry commentedi'd accept such a filter in contrib... it would be nice.
Comment #2
zmove commentedOk, so I think I can look further in it.
Another question relating to the way the filter could work.
Do you think it is better to work on a "specified code" ? like I said abobe [imagecache etc...]
Or do you think it is better to work on the true image tag
I would like to choose the second option, it would not break your content if you disable the filter one day, in addition, it would not oblige you to learn a new syntax to add an image and the integration with WYSIWYG would be already done as it's a normal image tag (with a specified class maybe to be able to not "imagecache" an image you don't want).
Comment #3
psicomante commentedi've done a module that interface with bueditor, imagefield and imagecache. It's a bit "hard-coded", it should be more dynamic. If someone is interested to this module, and would make a *public* contrib module, i'll send it.
Comment #4
zmove commentedHi,
You can send it to me I will look through it and see what can I do with it.
Comment #5
drewish commenteddue to lack of interest (and my interest in clearing out this issue queue) i'm going to mark this as won't fix. i think something like the inline or wysiwyg module could probably do this better.
Comment #6
drewish commentedsee http://drupal.org/project/image_resize_filter