Active
Project:
Node Images
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2007 at 11:24 UTC
Updated:
7 Oct 2008 at 19:06 UTC
Jump to comment: Most recent file
I've made some modifications to the node_images module so that it allows the upload of 2 size images apart the full picture. I've also added the code so that if you want to resize the node images you can do that and you're not forced to re-upload all the images.
The re-resizing part I tried to make it as a tab in the settings page but i couldn't (if anyone can do it feel free to do it) so it's in the admin/build part of the administrations (after all it has something to do with buildin the content of the site).
If anyone is interested in this let me know
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | node_images_5.patch | 2.81 KB | tic2000 |
| #2 | node_images_4.patch | 35.96 KB | tic2000 |
Comments
Comment #1
janosch commentedThat sounds very great, i would definately need this. Maybe as well an option to delete the original and keep the 2 resized? That way users can upload large pictures without being annoyed by a limit notice, and it wouldn't take as much space up either.
Comment #2
tic2000 commentedI don't have a cvs account (or at least is this I think it's called) and I don't know and don't have the time to learn how to create a patch file. I can try to upload my new module file. If anyone can create a patch from it, feel free to do so. For the new file to work, you need to alter the node_images table inserting 2 new columns (
mediumpath varchar(255) NOT NULL default ''andmediumsize int(10) unsigned NOT NULL default '0')If anyone interested my function to display images is:
I use a class for node images cause I want my pages to be XHTML 1.0 strict, and setting the width and height of images in img tag brakes the strictness.
Comment #3
tic2000 commentedA note anyway, even if an option to delete the original image is set, the warning will still remain, cause the image is uploaded before any resizing and copying. As a consequence the image still has to respect the server limits.
Comment #4
tic2000 commentedOK, I have done a proper patch to create an admin page for resizing the thumbnails after they are uploaded. To resize you go first to admin/settings/node_images and enter the size you want, after that you go to admin/build/node_images, check the box and hit enter. That's all.
Maybe I'll come with the path to enable the thickbox gallery for node images when I'll have the time.
Comment #5
summit commentedHi,
Will this patch be committed? Looking for resizing option.
greetings,
Martijn
Comment #6
ahoria commentedA D6 port maybe?