Supercharging the Gallery app
Ever since its launch, our free Gallery app has been one of the most popular. As is so often the case, when an app gets a lot of use we begin to see how its flexibility and usefulness can be improved.
Since Gallery v1 was developed, advances in the Perch API have made tasks like image processing and template parsing much more straightforward, and so when it came to work on Gallery v2 we knew that we’d be able to break free of things like the restrictions of having only two image sizes.
But we went further than that. We knew that reordering images within an album was cumbersome, so we added drag and drop. We removed the requirement to set an image title, defaulting to the file name if none was entered, and we added batch operations like multi-item delete to make management easier.
One of the biggest jobs when managing galleries is, of course, uploading all the images. Lots of you have been asking for some way to upload multiple images at once. Technically, that’s not straightforward, as shared hosting accounts often have an upload limit as low as 2MB. Sometimes that can be too low for one image, let along a batch.
Gallery v2 gets around this by using an uploader with the ability to split files into chunks and upload them in chunks, piecing the images back together on the server. The upshot is that – provided you have a capable browser – you can point Gallery v2 at a folder of images, set it upload and come back to it when it’s done.
- Multiple custom image sizes, driven by template options
- Bulk image uploading
- Chunked uploading (requires Flash or Sliverlight plugins, or a fancy-pants HTML5 browser)
- Drag and drop image reordering
- Bulk image deletion within albums
- No requirement to enter an image title
perch_galleryfunctions to make them easier to use in your pages
- All the ‘custom’ options for album and image listings, including
filter(including custom fields),
paginateand so on.
Gallery v2 requires Perch 1.8 (which is a free update, as usual). Due to the changes, it is not compatible with previous versions of the Gallery app. We’ve kept the docs and download for v1 available for those using Gallery v1 on an existing site. You should use v2 when you need a gallery on a new site.