Tag Archives: Gallery2

Finally a Gallery2 WordPress Gallery Replacement

So I’ve got around to testing a large amount of possible replacements for Gallery2 and found one which generally fits (and I hope will be improved since it is entirely stable, but lacking a few features). The need was to have:

  • A WordPress-integrated browsable gallery (so it cannot just be the “attach images to WordPress posts” WordPress uses by default). This would include the ability to have subgalleries and automatic thumbnail creation.
  • The ability to put a gallery image in a post (with caption),
  • Easy to upload images too (ie; would allow multiple file uploads at once. By Java, FTP, Flash, zip etc.).
  • Ability to add some kind of description or name to the pictures.

It also cannot be a off-site host. I frankly despise putting too much on Facebook, while I actually like some of Flickr’s parts too, I have a website for a reason and both want to use it, and not give my photos intentionally to a third party. Faster too to link to my own photos 🙂 and no reliability problems.

Gallery2 Woes

Why get rid of Gallery 2 then? Well, Gallery2 itself isn’t too bad, as it goes (and is easily hackable with plugins, theme changes if you need it to be better) – it had also a great Java upload thing just to process a ton of uploads over HTTP, and resizing (and cropping), thumbnail and subfolder options (such as what was the folder thumbnail) were good too. Naming and descriptions were fine as well.

However, WordPress integration was always problematic. The rarely-updated and complex WPG2 likes things done in a very specific way, often messing up both its own settings and the main Gallery2 install settings (permalinks mainly). It liked its own gallery page, which simply embeds the Gallery2 page bizarrely – I couldn’t get it to work much better, so the Gallery2 part was always off by itself! The actual insertion of images in posts generally worked okay too – a little annoyance at adding odd CSS and HTML but in generally a-okay for what I needed, and finding images worked fine too.

This was a few years ago mind – some of the plugins below didn’t even exist then, and WordPress hadn’t even integrated things like auto-site-updates and its own media offerings were lackluster (and for me still are not suitable, see below). It worked with some effort before. Just I need a better and simply a more simple solution now.

Testing Options

So, in any case I’ll go through what I generally tested then! Some are rather popular ones I just couldn’t get working or were not suitable, cest la vie 🙂 In fact, there were no many that even fitted the “Don’t use the WordPress media upload system”.

WordPress Itself

Hopeless for the above criteria. I need accessible galleries, thumbnails and captions, while WordPress can deal with per-post images, it doesn’t have any captioning options, gallery options (although some plugins hook into it) and organisational options are limited to “by date and post” or “all in one folder”. With hundreds of photos to add at minimum this was unworkable.

Sad, too, since the upload interface allowed easy additions of titles and descriptions when uploading.

NextGEN Gallery

NextGEN was the most popular one I tested. It worked, nicer integration then many, but fails at the “subgalleries”. Some parts were utterly terrible to use – the way you have to make subgalleries and so forth simply failed for me – strange admin interfaces to get it to work, where it simply didn’t want to cooperate. The documentation was poor too, surprisingly. Finally, the upload interface didn’t work with any SSL options enabled, it simply didn’t (neither Admin SSL or what I generally use, forced WordPress SSL worked), which is required for me.

If you want a gallery, try it – but be aware of the issues with subfolders and pictures in those same folders.

Awsom PixGallery

Pixgallery was a nice and simple gallery, might be suitable for others (especially, it appears, comic sites). However, it didn’t work too well for me because of the lack of inline-post-thumbnail options – it works fine as a gallery, but not for having images in posts separately. However it did most other things fine – and has some options I miss in the one I chose, namely things like “Remove underscores and replace with spaces in filenames” and filenames being different from captions/descriptions.

One other oddity with this was nice permalinks were destined to never be added, for no foreseeable reason. Odd, since I rather like them, keeps URL’s nice and readable, which is the point (and is why my site isn’t all p=1412 or something!). Another thing was that ordering could not ever be done with “Folders come first”, which is a bizarre omission and makes ordering things a bit difficult unless you manually order everything.


Sadly, despite Coppermine looking like a competent 3rd party gallery, the only plugins allowed integrated galleries, nothing that helped linked thumbnails and captions into posts easily. This just made me miss this one out entirely, a latecomer in any case, sadly no one is dedicated to do a fuller implementation it seems.


Not many others played well with my subfolder-madeup WordPress, and wanting to have a page or folder in the root directory. Many were out of date, basically not working with the latest WordPress code (and WordPress.org REALLY needs to add a Mozilla-addons-like “Select the version of WordPress you are on”!). A fair few just integrated other gallery software – mainly external sites (Flickr, Picasa etc.), and others just messed with adding javascript or options over the WordPress upload system.

The Final Choice

Lazyest Gallery

Lazyest Gallery was my choice for a swap. It has it’s own simple system to check a set directory for picture files (so FTP uploads work fine), and create thumbnails and cut down sized versions on the fly – done nicely in the folders themselves. Can caption images relatively easily, and users can comment per picture too. None of the captions are DB based, but instead XML based (comments are just in WP’s normal system). Simple to setup, and some simple options for how the galleries should be displayed (size, columns, amount of things per page, slideshow options and so forth).

The way you put a page up for it is dead easy, and it works with WordPress being in a subfolder thankfully, keeping my site structure neat. It also has excellent syntax for adding whatever kind of image in a post – whatever size, position and caption.

Still not feature-complete enough in some areas – permalinks are on the upcoming features list (yes!), there is little ease of use moving things around (see below for why), and I’d also like at some point separate “Name” and “Caption” fields, which would really solve file naming issues. It also doesn’t have a nice way to find an image to add to posts (the button helps but first you need the image path and name), but this is minor since it is easily copied from the gallery itself. It appears it will continue to be updated with some nice bits and pieces I could use too (such as multiple HTTP upload facilities).

Odd Apache Note

Apache running PHP has any files created by it set to the user “nobody nobody”. With the security risks involved, yes, this means I can’t physically remove some files or folders (arbitrarily sometimes) except through the same PHP scripts (and sometimes it’s just bizarre what does and doesn’t work mind you). Lazyest has problems deleting thumbnails/caches and their folders sometimes, but it can delete the photos themselves it seems from whatever source they were from. I’ve got some simple scripts so if I need to I can force things to be permission 777, then deleted by PHP itself, which should solve any major issues with this. Or I just won’t move much. As long as it is readable so it can be backed up, all should be okay.


There is no perfect WordPress gallery out there yet for me, mainly! I think Lazyest is by far the closest and most well integrated for my needs. I’m going to spend some time moving images over to it (along with their descriptions) and updating the hundreds of posts I have linking to Gallery2 images and replacing them before I remove Gallery entirely. Here’s to hoping it works okay in the end! (And if a better gallery plugin becomes available, I don’t know even then if I’ll bother to swap back, but Lazyest keeps everything quite neat if I ever did 🙂 thumbs up from me on that).

Battling WordPress and Gallery Software

I’m still looking at Gallery2 replacements, I suspect I’ll be summarising what I think of the ones I’m checking out (since I need it to work on this webserver setup, I do do some of the testing live, so hooray for random links appearing 😉 ). I’ve got some links to follow up from my hosts’ forums, and specifically am looking for 3 things – automatic page creation and allowing gallery subpages, thumbnails available for WordPress posts and that it works properly with WordPress 2.8. If anyone does use one, give me a shout which it is. I’m going to retest NextGEN which is the most well known WordPress one (despite its, to me, seemingly highly beta status), then move onto other solutions. The battle began with me basically reinstalling the latest WordPress and fixing it’s own internal gallery upload system (the flash bit failed to work until I used the internal SSL admin side, rather then the AdminSSL plugin for instance). I won’t back down now, even though this is taking forever. In the mean time I’ll use Gallery2 to upload bits and pieces, and wait to get around to my notes from Brighton with associated pictures.

It’s never easy, is it? Hopefully this might help someone else who wants a good bit of gallery software so they don’t have to use the admittedly-nice-looking Flickr or somesuch, since I do certainly want to self-host these images, and not rely on things like “term of use” and “ownership rights”, sigh.

eSata Working Nearly Perfectly, and Comments on Pages

The System Restore has worked fine getting my FireWire working from the previous problems I had. It still isn’t a proper hot-swappable eSata port, and I’ve no idea why (internet reports that it can be). However, HotSwap! is a neat app that can do it since the drive can be removed, just needs to have the cache cleared so there are no write errors. Just means I’ll have to be a bit careful not having it turn off without disconnecting it!

I’ve also had time this week to enable comments on all the pages on my site, and now they’re enabled by default on new ones I create. I’m inspired mainly by php.net’s impressive comments (well, I say impressive, they’re notable for being usually better at explaining things then the real documentation!). Might be useful in the future in any case.

Finally, my Gallery2 installation with WordPress WPG2 plugin is again messing up (note the two Gallery links in the left navigation) – ahhgg, but for a proper permanent link setup which actually worked so it was /gallery/v/XXX instead of /v/XXX links from thumbnails! This is a PITA, and I’ll have to sort it sometime, or replace Gallery2 and WPG2 – which won’t be a small task (meaning: re-uploading *everything*), but I think might be necessary (and would allow me to cull some of the less worthwhile pictures and setup better thumbnail sizes so not so much HDD space is used on my server account), or at least I need to hack it to work better.

I’m leaving it since I want to also investigate hacking WPG2 to do better thumbnail HTML/CSS – at the moment it sticks the image and link inside a

tag to get it to float, centre etc – while in the RSS feed, this pretty much goes out of whack since of course CSS isn’t loaded for it. Inlining some CSS into the tag would certainly help there.

Starting a journal site from scratch

I’ve decided to start writing my own site properly at last, starting on my birthday. Hopefully this’ll be a collective area for my thoughts and any useful news for others about things I get up to.

One painful thing so far is finding a way to start a website. After a bit of hassle I’ve got the latest version of wordpress running, and a theme from the wordpress themes website.

I also tried to integrate Gallery2 for private use. Luckily I could install it via. cpanel installed on my host, since my host doesn’t allow all the editing rights it usually needs.

Finally, I intend to fully make my own theme, add to wordpress so I can edit my site independently of its system since I have several sub project pages I wish to create with sub-journals of news – or another solution that works.

I also decided to go with an SSL certificate. I have a few private password protected areas which I run and want to keep secure, and the site might as well benefit from this. This means I will be using https://www.aarmstrong.org, and for those who like the purer non-www version, I can’t do that without upsetting what your browser sees as my valid site address, oh well!

I’ll be looking at if it is worth keeping the main site as SSL-only. Apart from not being cached by proxies I don’t see any reason why it’d not work fine. If anyone has a problem with it though I think I could separate the SSL and not-as-private parts.

Hopefully this journal will be useful. I will likely not mention the word much but here goes; I don’t particularily like the word “blog”, so I’ll refer (to much like for me) so its my journal. Either way I am sure everyone else uses it (in the blagosphere I am told) so it’ll crop up I suppose.