Image Picker: A better image upload module

Events happening in the community are now at Drupal community events on www.drupal.org.
notsleepy's picture

I was frustrated with all the modules I found for uploading images so I designed my own based on the Wordpress image upload but with some improvements. I haven't signed up for a CVS account yet but will do so shortly and add it to the modules available for download. For now you can read about my image upload module and see screenshots and its available for download.

Let me know what you think!

BTW, this module is for 5.xx only.

Comments

Interesting

boris mann's picture

Looks like lots of things that can just be added as patches to image module. Why not go that route?

I often find it easier to

notsleepy's picture

I often find it easier to roll my own code rather than try to patch someone else's and in this case to be honest I felt image was too far from what I was after to attempt to patch.

I often find it easier to

yched's picture

I often find it easier to roll my own code rather than try to patch someone else's
Sure, that's because it is easier :-).

However, it is often more constructive and beneficial for the community to gather efforts on improving existing modules whenever possible rather that creating yet-another-module to deal with a feature, which adds to the confusion for users ('OK, which one is best for me ?' / 'OK, module A has this feature I need, but module B has this other one I need too'). See the current aggregator modules mess, for instance.

There are good reasons to fork a module or start from scratch, some of which maybe apply here, but 'it's easier' is not one of them :-)

Image handling already has some (too many ?) serious contenders (Image, IMCE, Image assist, Imagefield/imagecache, I might be forgetting some...), and I too wish those could be improved if needed, instead of seeing another one join the crowd. It would also raise the chance of massive adoption and recognition for your work, btw.

Sorry. Fit my needs. Job

notsleepy's picture

Sorry. Fit my needs. Job done. No need for you to install.

In response to a previous

christefano's picture

In response to a previous comment, this image picker module looks like it could be another serious contender. The tone of this thread is getting argumentative, so I'll stay clear of that and write about my preliminary experience (I only used it for a few minutes and didn't look at the code).

In the latest Safari and Firefox, the insert image button does insert the image but there's no feedback in the image picker fieldset that it's doing anything.

The styling in the image picker fieldset doesn't match your screenshot -- on my test site and in all browsers I tried, the Align, Show and Link sections are listed in one long column instead of three short columns (like your screenshot). This prevents a user from seeing live changes to the node body field when clicking the insert image button.

Also, it inserts the images as absolute paths instead of relative ones to the files directory. This is less than ideal.

Make it an official module

Shai's picture

There are a lot of different ways to contribute to an open source project... improve on other people's stuff and join with them, or go out on your own and more.

There might be some group that comes together to synthesize the best of them all at some point.

But the main thing is that you create a project page for it at drupal.org and that it resides in the official repository of modules... otherwise few will benefit from the work you've done and you won't get the bug reports and all the other good stuff from putting it out there in the world.

I hope this module soon shows up on at drupal.org.

Shai

Shai Gluskin
Content2zero

Thanks. I'll try to get it

notsleepy's picture

Thanks. I'll try to get it into a project page at drupal.org. I'll have to some reading on how to go about that but definitely I would like to see it improved.

Update: CVS account applied for. Next I'll just have to learn how to do a commit properly. (Hopefully very similar to SVN as thats all I've used!)

Images saved as nodes?

bryansd's picture

Although I've used Drupal for a couple years, it's only now that I've started looking at Drupal for displaying images in an album/gallery setting. So far I'm considering the Image related modules or a Gallery2 integration. While I like the features of Gallery2 I really yearn to have the images saved as nodes. Does Image Picker save the images as individual nodes like the Image modules? At a brief glance of the references to your module...I can't tell one way or another.

Thanks,
Bryan

Bryan Ruby
socPub

No, it functions just like

notsleepy's picture

No, it functions just like Wordpress. Uploads images to the server, generates thumbnails for you, and makes it easy to drop the HTML in your post.

I really hated separate nodes per image.

Thanks for the quick reply

bryansd's picture

Thanks for the quick reply. I like the "Wordpress" function if the images are used in support of the post/article/story etc. However, I do like the concept of an image as a node...when the image itself is the primary focus of the post. Still...I think I will give your Image Picker a try...

BryanSD
CMS Report

Bryan Ruby
socPub

Upload Image may be helpful

christefano's picture

The Upload Image module automatically creates image nodes from images attached to nodes.

I've finally got the module

notsleepy's picture

I've finally got the module committed:
http://drupal.org/project/imagepicker

Please add your thoughts to documentation

peterx's picture

This page came up first when I searched for image upload. I could not find a Drupal documentation page comparing the modules so I started page http://drupal.org/node/528074. Perhaps you could add your experience of the various modules along the lines of:
Requirement: best choice(s).

petermoulding.com/web_architect

Image picker display

capricorn's picture

I have installed image picker and seeing in my account was even able to upload the image however when I go to edit the content page nothing is appearing in the Image picker box. In addition I am getting the following errors - 1) warning:pg_query()[function.pg.query]:Query failed:ERROR:column "g.uid" must appear in the GROUP BY clause or be used in an aggregate function in C:\xammp\htdocs\drupal-6.14\includes\database.pgsql.inc on line 139.

2)user warning:query:SELECT g.gid. g.uid, g.group_name, g.group_description, g.state, g.public, COUNT(i.img_id) AS ct,u.name FROM imagepicker_user_groups g LEFT JOIN imagepicker_group_images i USING(gid), users u WHERE g.uid=u.uid GROUP BY g.gid ORDER BY g.group_name ASC in C:\xammp\htdocs\drupal-6.14\modules\imagepicker.admin.inc on line 629

Please help.

Image

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: