The img module is a simple but a powerful Drupal image manipulator module.
- You can add images to any type of nodes (story, blog, page ...).
- Images can be placed anywhere on the post page.
- You can add more than one image to posts.
- The thumbnail will be transformed into an image link (it will link to the owner post node).
- Images will keep their original attributes (title, alt ...).
What you must do?
- Upload an image (image.jpg) and their thumbnail (image_t.jpg).
- Add an image tag (or more) to your post containing the thumbnail image (
<img src="/path_to_uploaded_image/image_t.jpg" alt="an image" title="My image" />).
That's all: You will see the large image only when the owner post is entirely showed.
Download and test: http://para.ro/en/node/191 (all my posts use this module)
Comments
A little known ability of
A little known ability of the image module is the ability to use
<img src="">tags as well.http://drupal.org/node/47357
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
The image module is great
The image module is great: It can make resized images, image galleries (but you can make galleries with img like I did: I defined a taxonomy and added stories with img content to it.).., things what img module can't do.
The image module enables thumbnails in any type of posts: books, stories, blog entries ... (and image content type made by the image.module (??!!, also ?! but no sense) and they can be placed anywhere inside the text.
So, no conflict with the image module: img.module wants to do something else than image.module does.
I'm all good with that, just
I'm all good with that, just most people don't know about the img tag capabilities of the image module so I added a handbook page and thought I would mention it.
That there is some overlap of functionality is fine. You might wish to see what berkes plans are with his betterupload module as it may be that you can combine some efforts and come up with a more complete solution.
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Point me to the book page
When your book page is ready give me a link to it, please.
I'll take a look into the upload module you talking about.
Thanks.
You mean the link in the
You mean the link in the above comment?
http://drupal.org/node/47624#comment-89680
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
"come up with a more complete solution"
This solution is 100% complete for users how can write img tags and/or use standalone or browser html editors.
By adding more functionality, like upload and/or re-sizer, its actual flexibility will be certainly decreased. (Before, I used the image module, but I had problems with it (slow in taxonomies, thumbnail image can't be created ....) and I decided to write an image module for my needs.)
The module is ready (again: I'm set with it) and I have no reason to keep it. So, it is in public domain now. Anyone who is interested is welcomed to do with it what he/she wants.
Cheers,
Zoli.
It may be that your approach
It may be that your approach sparks ideas and directions or solves a problem in a way not yet thought of for others to benefit. Collaboration being usually a good thing.
By 'more complete solution', I meant berkes goal of a 'more complete solution for file handling'. Images are just another file after all with different display characteristics needed. :)
If your efforts can be combined in later generations of modules then so much the better for everyone.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Wow! What a discussion!
Wow! What a discussion we had two years ago... (two years?!)
Now I am on the right way, I hope.
Cheers. :)
Suggestions
Suggestions:
1) Add "Thumbnail size" and "Original image size" options to parameters.
2) Upload only original image.
3) If uploaded image don't have thumbnail size, make thumbnail using GD2 library. Otherwise use uploaded image directly as "thumbnail without original"
4) If uploaded image larger "Original image size", resize it and use resized as "original image"
5) Add "Link to original image" option to image upload panel. If it deselected, keep resized thumbnail only, and include it into text without link.
6) Keep images for every node in own node subdirectory. (It must be emptied on node deletion.)
You are now essentially
You are now essentially descriping the image module
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
No.
No.
1) Image module always create three images: original, medium and small.
2) Image module always create own node for every uploaded image.
3) Image module put all generated images to one directory.
4) Image module always made images included in text with link to original image.
Module I describe, looks like advanced version of "upload module" + "inline module".
Then you may wish to
Then you may wish to coordinate efforts with berkes. He is working on a 'betterupload' module for more flexible handling of attachments.
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/betterupload/
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Images/thumbnails
Thanks for your reply.
Forgot what I said about thumbnails
Forgot what I said about thumbnails.
I think, it will be a good, but a bit advanced, feature for the module we talking about.
Thanks again for your feedback and suggestions.
-------
http://para.ro/en
Additional comment
First I'll add the 'view original image' (taxonomy level setting) and then ... I'll see.
We'll keep in touch.
discontinued
This project is removed because of the upload and inline modules. They are powerful in 4.7.
http://para.ro