By samr7 on
What would you say to Gallery Remote support for Drupal's built-in image.module galleries? I put together a module that implements the Gallery Remote APIs, allowing Drupal to pretend to be the Menalto Gallery application, using Drupal's native storage and management of images.
The elegance of Gallery Remote is hard to compare with form-based image uploads or FTP/SCP + image_assist. As a protocol it is bigger than just the Java applets that come with Gallery. There are third-party applications with plugins for Gallery Remote, such as digiKam, a certain iPhoto plugin, etc..
Sound interesting? Check it out.
Comments
i'd say...
rock on! :)
--
James Walker :: http://walkah.net/
ahh hell
Now I HAVE to update my personal site. :)
-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
why not just use gallery2?
could someone in the know explain to me the advantage of not just using the gallery2 system? this already has implementation into drupal although it doesn't work perfectly. i don't mean this rhetorically, rather, i'd like to hear the pros and cons of each.
two different tools
hello-
by using the gallery remote you gain additional functionality on the front end-
but your images are still drupal nodes.
gallery 2.0 is of course a different application-
even if it is bridged by the drupal module.
i have used both- and vastly prefer the drupal system for images.
Drupal samurai for hire, based in Buffalo, New York, USA.
15+ years Drupal, 20+ years web.
http://basicmagic.net
I am not using the Gallery
I am not using the Gallery server software on my sites. With ONE posible remote exception, I am not likely to be using it in the near future for any of my sites. The front end to upload is sufficient for my needs and a nice, unexpected surprise.
Pros... easier Drupal upgrade path as we progress further
Cons.... I have no plans to use Gallery.
Hope Walkah stays involved enough to update it.
-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
image.module vs. gallery2
since i actually maintain both image.module and the drupal integration for gallery2, i should comment:
the 2 tools are quite different
* gallery2 is everything you could want (and more) for online/web-based image management - it has a strong community surrounding it over at http://gallery.menalto.com , and gallery has a *lot* of users (between v1 and v2). lots of people are used to, prefer, or have enourmous galleries in the menalto version. the integration suits these folks well... (mostly ;) HOWEVER, you give up things like taxonomy for images, comments (unless you use gallery's comment system), etc... and in general the integration isn't as tight.
* image.module - is completely drupal native, and can be very closely integrated with drupal - each photo/image gets a node, and therefore all the things nodes can have (categories, comments, permissions, etc) .. however, there are lots of features in gallery2 that aren't (and may never be) in image.module . so it's a take your pick.
that said - bulk uploading - or simple *from the desktop* uploading for drupal's image module is a definitely welcome addition for image.module.
congrats again Sam.
--
James Walker :: http://walkah.net/
thats cool! but I would like
thats cool! but I would like to see something like XP PUBLISH WIZARD in to the image module !!!
image: http://gallery.menalto.com/modules/PNphpBB2/files/wizard.gif
Yes, this works
Since Sam has implemented the Gallery Remote protocol, anything that normally talks to Gallery would now talk to Drupal's image.module.
Neato!
This looks terrific! Would you consider placing this in Drupal.org's contributions CVS repository? This way, we could create a project for it and make it a bit easier for everyone to find... this would also allow people to submit patches if they want to add features/fix bugs.
Anyway, thanks for sharing this and I can't wait to try it out!
I'll second that
Please sign up for a CVS account! Great work.
i also agree..
sam - if you're not interested in maintaining this or are unfamiliar with CVS, etc - I'd be certainly willing to open a contrib/ directory under the image branch to house this & maintain it.
(similar to what event has started to do with ical, etc).
--
James Walker :: http://walkah.net/
Ditto
I third that ...
Please put it in the contrib repository.
--
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
XP Publishing Wizard
Wow, what great module.
But I read on Bryght.com that one could use the XP publishing wizard too with your module. Is that correct ? Sounds like a friendly approach to my more inexperienced users.
In that case I was wondering how I could make a way for my users to download the appropriate registry entry to include my Drupal site as a "provider" (besides the default MSN Groups) in the XP Publishing Wizard.
I saw on gallery.menalto.com that a developer had made a module for dynamically providing the registry file for each user to download (see below). Is this something that could be included in your Gallery Remote module, or converted into an extra module for Drupal ?
//Thomas/bohtho
And how do/would you deal
And how do/would you deal with Mac users?
It works with iPhoto.
That's how.
Sweet
You don't know how many times I've muttered to myself how cool it would be to have Gallery Remote for Drupal. This is great. I'm going to check it out. It if works, I want to duke you!
Nice. I can now move one
Nice. I can now move one step closer to using Drupal for my images instead of Gallery. Thanks!
Updated: Image Publishing Module
Thanks for all the feedback!
Version 0.2 is available now, with a few Gallery Remote bug fixes, general refactoring, and basic support for the Windows Web Publishing Wizard. It has also been renamed to image_pub.module.
To use it with WPW, you must add your site to the list of publishing providers in the registry of your client machine. The module includes a hook to generate a .reg file, just like Gallery's publish_xp.php script. After that, it's self-explanatory. Microsoft did a relatively good job on this feature -- it may look like a distant cousin of clippy, but it's nicely integrated and doesn't seem to get in the way at all.
To clarify, unless I'm missing something, the old module does not work with WPW, and cannot be convinced to work with WPW with a registry hack.
Please report any bugs you run into.
Enjoy...
hey man this is great! :)
hey man this is great! :)
I was going to start changing the image.module for doing multiple uploads ...
hehe no need for it now :D
thanks
image_import
@azote: as an aside - you can also use image_import module to bulk upload images.
--
James Walker :: http://walkah.net/
sweet thanks...
sweet thanks...
remote client applet
Anyone have any examples of how to run the remote client java applet within Drupal? Also, does anyone know if there are multiple versions of this applet (i.e. full version versus lite?)
Great! I already tried this
Great! I already tried this and it worked very well.
Though I fixed one bug. Its on this line:
$site_descr = sprintf(_("Publish Your Photos to %s."), $site_name);
of the the function _image_pub_xp_reghack(). Error arise when the function _() can't be found. You see the "_" before the text "Publish Your Photos to %s.". I just removed it and all is well :) I don't know if this is correct but I got it working...
I got version 0.2.
Work smarter, not harder!
jeff@digitalsolutions.ph
jhefmv [at] gmail [dot] com
Work smarter, not harder!
Congrats and thanks!
samr7,
Thanks very much for this module! I just tested it and got amazed!
Cheers,
Emiliano
http://www.novayork.com
Great job on the WPW stuff...
One of my favorites about Gallery and now it's in Drupal too. Yeah!
While I don't mind doing other uploads (from Linux, ftp, etc), it's nice to have something for the wife and newbies to use.
One thing missing (which Gallery has) is the ability to drop extensions, and thus better label things.
If you add an extension drop option, that's probably 90% of what most people will ever need right there. (So I rename a bunch of pictures to "My desired image title.jpg", and drop the extension on the upload... and they all get named correctly as "My desired image title")
cool
Thanks a lot for this. You run a verry nice drupal site and this piece really helps newbe's out. And I like it as well ;-)
--
groets
bertb
--
groets
bert boerland
Guys, I think we should get
Guys, I think we should get samr7 something nice.
: z
Yeah, cash
Everyone who uses this should chip in a few bucks. How do we get it to him?
--
Get better help from Drupal's forums and read this.
Other content?
Just curious, what would happen if some other media was uploaded via this module? How about a video or mp3?
that would be lovely
however, as it stands now, the protocol he's implemented is really designed to work with existing tools desiged for images only.
however, external publishing APIs are a fetish of mine, so I'd love to see something like this happen, but it takes co-operation with the desktop tool developers.
--
James Walker :: http://walkah.net/
GR and categories
Great work. I have a feature request. I would like to be able to create gallery from within GR. Currently you have to create the gallery in Drupal by creting a new category before you can upload the images.
Hey, how can I donate to help support your work?
--
Get better help from Drupal's forums and read this.
Sounds like you should create
Sam, sounds like you should create a project on Donorge -- then people can donate. Also, of course, a CVS account here so that you can get it checked in.
image_pub module install
Help! Ok, so for weeks I've read about this great interface to image.module and been planning to install it on my site. Now I finally get to it and I don't understand something. I assume I do not need to install Gallery on my web server and that the image_pub.module is all I need. But some of the help and messages I'm seeing refer to a file -> gallery_remote2.php which comes bundled with Gallery. It also appears to be the 'entry point' the remote tool is looking for according to the image_pub modules' README.txt. So what am I missing? I downloaded and installed the Gallery Remote application for my windows box and have tried various ways to log onto my server with no luck. I did get it to not prompt with an error once by putting the gallery_remote2.php file at my drupal root but nothing else happened either. :) Thanks for any help.
You do not need Gallery
You do not need Gallery. You just install this module in the regular module directly.
--
Get better help from Drupal's forums and read this.
the problem
The problem i was having was how i pointed the java client to my site. I don't use 'clean URLs' so i had to add the '/?q=' at the end of the URL for it to find the 'gallery_remote2.php' entry. Thanks.
OK, thanks
Thanks for getting back and letting us know what the problem was.
--
Get better help from Drupal's forums and read this.
gallery remote applet
When using the image.module with this image_pub module, does anyone know how to make the applet see the galleries any way other than read-only? I see that samr7's site demonstrates the applet in read-only mode but the wording makes it seem as if it doesn't have to be read-only.
The downloaded and installed Gallery Remote application can view and add to galleries no problem. The difference being, maybe, that the application must be configured to link to the drupal site with a user name and password.
Thanks again for any help!
Ever figure out how to change the applet to read-write?
I'm having the exact problem as myadidas (embedded applet sees galleries as read-only). Just wondering if anyone ever found a solution.
Sadly no
From the lack of response I have been under the assumption that this just isn't possible, but I hope I'm wrong. I even posted something on samr7's drupal site but there is no response there either. I still believe it has to do with passing a user name and password which might not be possible with the applet.
Any future releases?
I was hoping there would be some future realeases of this module. What's the word, samr7?
--
Get better help from Drupal's forums and read this.
Have things changed? Connection problems.
Using Drupal 4.6.2, and image_pub 0.2 and image.module is live.
I can certainly see the admin settings "image publishing"
When accessing with a browser to
http://mysite.co.uk/?q=gallery_remote2.php
I get:
"For more information about Gallery Remote, see Gallery's website located at http://gallery.sourceforge.net"
Looking at the module code that seems to be approriate.
Yet GR fails with that url: Gallery Remote can find no protocol implementation .... etc.
Is 4.6.2 the problem? Sam mentioned only tested for 4.6.1 Though someone on http://lsb.blogdns.net/software/galleryremote/ said its ok.
NB: I have a working Gallery 1.5.1-RC2 Preview Release which I can access fine with GR.
Umpf. GR looks like such a cool tool. Any 'me too's'?
Galley Remote
It works pretty well for me, read/write, and adding "folders" through GR actually extends the taxonomy associated with the image gallery. Your problem may be the URL you're accessing. The documentation for image_pub says:
(Emphasis added.)
So, if your Drupal site is accessible at http://www.example.com/, that is the address you should give GR. Don't tell GR to hit gallery_remote2.php specifically. That is one of the addresses it will try automatically.
If you get an error message that claims GR can't find gallery_remote2.php, it may not mean what you think. GR and the module don't always communicate well, and any error seems to be interpreted that way by GR.
I am able to create folders (extending the taxonomy) but GR throws the "Error: Server contacted, but Gallery not found at this url" message every time, even though the transaction succeeded.
Strange thing
Hi ya Steve,
Thanks for that!
OK, strange thing happened. Got home and all was fine - no changes made! I have a suspicion the firewall/proxy at the place I contract (big corp) might be involved. Occasionally I have other waky effects. Here I'm in my own LAN.
But... I have a separate (no net) installation on a laptop (have to keep busy at work) and did a quick test and got it working. Home and laptop working! (Un-)fortunately I'm on holiday next week so I can't do the reverse test.
I have tried to access without /?q=gallery_remote2.php appended using GR. Does not work from Win GR 1.4.1. Drupal is installed in web root. So I guess I am not lucky in this case. BTW that laptop showed something that hints that GR did just that. It had an error message coming up stating there is a problem accessing:
mysite.co.uk/?q=gallery_remote2.php/?q=gallery_remote2.php
Unfortunately I cannot get new albums created. GR creates an entry but that stays black. The already existing ones are green. Uploading a photo to an existing gallery works fine though :) Uploading to a new one just stalls.
A thing I have not followed through is version differences between GR. At home/work identical Win installers (1.4.1), on laptop Linux installer. And then there are loads of releases of GR to be considered.... Which version of GR are you using?
cheers, Martin
----
Drupal 4.6.2, MySQL 4.0.23a, on Slackware 10.1
You can now create categories with GR?
I checked the code last week and there hadn't been an update. Are you saying that you can now create categories with GR?
--
Get better help from Drupal's forums and read this.
Yes, I'm saying that I can
Yes, I'm saying that I can create categories ... but it doesn't work properly; I consistently get a popup error from GR saying "Gallery not found at this url." If I go into the website directly, I typically find that the category word was inserted into the taxonomy twice.
iPhoto to Drupal using imagepub mod and iPhoto to Gal plugin
I am using the iPhoto to Gal plugin from zwily (0.62) and the image_pub mod from Sam Revitch and it logins in fine and even sees the galleries and allows me to create new ones. But when I go to export, I get "Export Failed: Error 1001". Could this have to do with the galleries being seen as read-only?
now it does not allow me to
now it does not allow me to create galleries, and returns an error of 502
now it works fine
now it works fine
What did you do to correct this?
I'm having exactly this problem - I cannot upload from GR or the iPhoto plugin. Is this a permissions issue on the server?
could be, but i dont
could be, but i dont remember what if anything I did - suddenly it just worked - sorry...
Not working :(
Hi.
I was so lucky I found this module, but until moment I realised is is working with Gallery Remote and neither with Windows Publishing Wizard. :((
Gallery Remote during connecting to my drupal site is adding a trailing slash after my site's adress. Since I am not using clean URLs, it results in adress www.example.com/?q=/, which GR cannot connect to.
I followed instructions carefuly, merged dowloaded registry file with my WIndows XP registry, hoping WPW can save me, but no. I lets me input username and password, but immediately after that it says me, I cannot connect due to invalid server/username/password. What can I do? I have nice drupal module, but for nothing, because I have no appropriate application which can work with it.
Can somebody help me on this.
Thanks in advance
lakyljuk
gallery remote applet stuck in read-only
Has anyone gotten the gallery remote APPLET to work correctly with this instead of being stuck in read only mode?
i know the stand alone gallery remote is working for some but i mean when you embed in a site as I have at
http://thefractal.org/node/197
lets get it working.
------------------------------
Ryan Grace
Webdev&design
Internal Combustion Retrofits
www.realenergy.net
www.veggiecarvan.com
www.puntamona.org
www.thefractal.org
Gallery Remote 1.5 read only
I am using Drupal 4.7 CVS
I have uploaded and enabled the latest version of the image_pub module.
I am able to open gallery remote and provide a drupal username/password which authenticates successfully.
But the applet is not allowing me to create new albums or add pictures. Seems to be in a read only mode.
Another issue I am facing is that after installing and enabling image_pub.module, I get a new menu called "Image Publishing". When I click on that I get the following error.
Fatal error: Call to undefined function: system_settings_save() in /usr/home/sharezil/public_html/modules/image_pub.module on line 52
Any help is appreciated.
Fix for Drupal 4.7
Hi,
I have fixed the image_pub module in order to work with Drupal 4.7. It might not be bulletproof, but it seems to work on my system with Drupal 4.7RC2. Feel free to download it (http://www.netwalk.be) and mail me any comments.
Cheers
Tom
not working
I get a forbidden error when trying to download the attachment.
OK now
Link is working now, sorry!
Grab your 4.7 image_pub module now from http://www.netwalk.be.
Cheers
Tom
Contribute to Drupal CVS?
Tom, this is a great module. Would you consider making it available in Drupal CVS? You can apply for a CVS account here. Thanks!
Errors in image_pub.module
Firstly, sorry for my bad english
I find 2 errors on image_pub.module in the version of this post:
http://www.netwalk.be/node/24
I work with Drupal 4.7 rc1
1-
In the line 639:
$site_descr = sprintf(_("Publish Your Photos to %s."), $site_name);changes to:
$site_descr = sprintf(t("Publish Your Photos to %s."), $site_name);2-
The function _image_get_vid() not exists
You can copy this code: http://drupal.org/node/61005
Actualización: Warning with this line o the _image_get_vid()
It don't works succesfully. My solution is this
I run Gallery Remote ok with this modifications
Thanks for this module!
Full code?
could you attach the full code as a .txt file?
image_pub module
I will add the image_pub to the 3rd party modules soon. I will also include delineas' changes in there.
Cheers
Tom
image_pub already in cvs
Tom, Sam, et al.
I had already went ahead and added image_pub to Drupal's contributed modules. I checked in Sam's initial 0.2 version followed by Tom's 4.7.0RC2 revisions, as well as my own updates to get it working against with image_module 4.7.0 (which renamed some function calls).
once again, the applet...
http://drupal.org/node/23645#comment-76378
Ill repeat..
Has anyone gotten the gallery remote APPLET to work correctly with this instead of being stuck in read only mode?
i know the stand alone gallery remote is working for some but i mean when you embed in a site as I have at
http://thefractal.org/node/197
lets get it working...
------------------------------
Ryan Grace
Webdev&design
Internal Combustion Retrofits
www.realenergy.net
www.veggiecarvan.com
www.puntamona.org
www.thefractal.org
I'm having the same problem,
I'm having the same problem, and if it wasn't for the XP Publishing Wizard that uploads everything with "Untitled", I'd use that but Gallery Remote being stuck in read-only gives me no choice.
--
Duplika | http://www.duplika.net
Built-in support for gallery remote
Many thanks for this module. It's great to be able to upload entire folders of images.
I used the simple XP "Publish to the web" menu which worked first time.
Is there a way for the image Title to pick up the filename? All mine say Untitled Image. If not, can I suppress the title from displaying?
Dave
regards
Dave Sandilands
http://bristolwebservices.co.uk
I have the same problem
I would like this to be fixed also. it makes sens to have the title the same as the filename.
It would be easy to create a template override using php.. and checking if the image title is undefined... not to show the title field in the template... But I think the correct solution is to have the names of the images properly.
Drupal5
Does this work with drupal5?
add a .info file
it works fine if you add a .info file
it's coming... can you help?
There's actually a bit more to patch than that in order to make it play nice with Drupal 5. See http://drupal.org/node/105977 for details.
If you could grab a copy of the patch or the complete updated module and TEST it, then report your findings (and ideally any fixes) at the above node, it would certainly help a 5.x get out faster.
--
Paul Chvostek - it.canada - climbers.org
Read-only
I've got image_pub 5.x-1.dev installed successfully on three Drupal 5.1 sites.
The problem is that GalleryRemote (version 1.5) sees the albums as read-only. But if i set my Drupal permissions to allow anonymous users to create photos then the albums become writable.
To me this says that there is a problem with the way that GalleryRemote sends the username and password.
Any suggestions?
user configuration
user configuration issue
uncomment the part after
in your drupa/sites settings.php file.
URL with Image Galleries
Hi.
I'm new with grupal but I need to make a shortcut to a Gallerie image, but I don´t now how.
Can anybody help??????