# Image Gallery Plugin

**URL:** https://meta.discourse.org/t/image-gallery-plugin/12574
**Category:** Plugin
**Tags:** broken
**Created:** [February 9, 2014, 3:31am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574 "2014-02-09T03:31:45Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![crob611](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crob611/32/108022_2.png) [@crob611](https://meta.discourse.org/u/crob611)
#### Post date: [February 9, 2014, 3:31am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/1 "2014-02-09T03:31:46Z")

</div>

I took a stab at creating a plugin that can organize a bunch of images into somewhat of a gallery. See a screenshot of it in action here: Screenshot here:

[![Imgur](https://global.discourse-cdn.com/meta/original/3X/4/6/46bc2426376e66268aed17a6072fab2084caa893.png "imgur.com") ](https://imgur.com/SltBEKN)

This doesn’t handle displaying images in lightboxes, instead it wraps the existing Discourse lightboxing that occurs on images.

You can customize the size the images get scaled down to.

Usage is like this:

```
[image-gallery]
 <img src="whatever" />
 <img src="whatever" />
[/image-gallery]

```

Repo is here: [GitHub - crob611/discourse-image-gallery: Image gallery plugin for Discourse · GitHub](https://github.com/crob611/discourse-image-gallery)

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [February 9, 2014, 8:50am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/2 "2014-02-09T08:50:53Z")

</div>

Nice! Added to [the list](https://www.communiteq.com/discourseplugins/)!

---

<div class="post-metadata">

### Author: ![Mahamsamatan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mahamsamatan/32/114270_2.png) [@Mahamsamatan](https://meta.discourse.org/u/Mahamsamatan)
#### Post date: [April 16, 2014, 2:17pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/3 "2014-04-16T14:17:22Z")

</div>

@crob611, cool plugin, can you provide a link where I could see it in action?

---

<div class="post-metadata">

### Author: ![crob611](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crob611/32/108022_2.png) [@crob611](https://meta.discourse.org/u/crob611)
#### Post date: [April 16, 2014, 3:28pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/4 "2014-04-16T15:28:25Z")

</div>

@Mahamsamatan Unfortunately, I don’t have it running anywhere. Sorry.

---

<div class="post-metadata">

### Author: ![stealthii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stealthii/32/122550_2.png) [@stealthii](https://meta.discourse.org/u/stealthii)
#### Post date: [May 9, 2014, 10:29am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/5 "2014-05-09T10:29:28Z")

</div>

There is a minor detail that I would like to see fixed - on any forum you cannot quote the tags to give rise to a description, for example:

> On my forum, a line containing code quoted `[image-gallery]` … `[/image-gallery]` will process these words/tags wherever they are written, unlike the `[spoiler]` plugin.

---

<div class="post-metadata">

### Author: ![codexia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codexia/32/219877_2.png) [@codexia](https://meta.discourse.org/u/codexia)
#### Post date: [January 14, 2015, 12:40pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/6 "2015-01-14T12:40:12Z")

</div>

Does this work on the latest version of Discourse? I tried to install it on my development version of Discourse, I can’t get it to work. When the tags are used on a new post, I can’t save it as it gives me “Internal Server Error 500”. I will include the production.log error message as soon as possible as I can get to my devbox.

EDIT: added error message from production.log:

```
Started POST "/posts" for "IP-ADDRESS" at 2015-01-13 21:06:42 +0000
Processing by PostsController#create as */*
  Parameters: {"raw"=>"[image-gallery]\n<img src=\"/uploads/default/17/02c9eeb0ca7f57e9.png\">\n<img src=\"/uploads/default/10/d2d06cb573f66f29.jpg\">\n<img src=\"/uploads/default/18/6033609447a3dc8c.jpg\">\n[/image-gallery]", "title"=>"testiaaanaskffgbkvb", "is_warning"=>"false", "archetype"=>"regular"}
Completed 500 Internal Server Error in 81ms

PrettyText::JavaScriptError (Object [/image-gallery] has no method 'exec'):
  lib/pretty_text.rb:165:in `block in markdown'
  lib/pretty_text.rb:330:in `block in protect'
  lib/pretty_text.rb:328:in `synchronize'
  lib/pretty_text.rb:328:in `protect'
  lib/pretty_text.rb:146:in `markdown'
  lib/pretty_text.rb:198:in `cook'
  app/models/post_analyzer.rb:12:in `cook'
  app/models/post_analyzer.rb:104:in `cooked_document'
  app/models/post_analyzer.rb:49:in `raw_mentions'
  app/models/post.rb:154:in `block (2 levels) in <class:Post>'
  lib/validators/post_validator.rb:40:in `max_mention_validator'
  lib/validators/post_validator.rb:10:in `validate'
  lib/post_creator.rb:258:in `save_post'
  lib/post_creator.rb:81:in `block in create'
  lib/post_creator.rb:140:in `call'
  lib/post_creator.rb:140:in `block in transaction'
  lib/post_creator.rb:138:in `transaction'
  lib/post_creator.rb:76:in `create'
  app/controllers/posts_controller.rb:80:in `create_post'
  app/controllers/posts_controller.rb:65:in `create'
  lib/middleware/anonymous_cache.rb:119:in `call'
  config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'
  config/initializers/silence_logger.rb:26:in `call'
  lib/middleware/unicorn_oobgc.rb:95:in `process_client'

```

---

<div class="post-metadata">

### Author: ![OvermindDL1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overminddl1/32/115252_2.png) [@OvermindDL1](https://meta.discourse.org/u/OvermindDL1)
#### Post date: [March 28, 2015, 4:05am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/7 "2015-03-28T04:05:02Z")

</div>

Same thing, dead I guess?

Are old no-longer-working plugins going to be trimmed from this section to a ‘old’ section or so?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [March 28, 2015, 4:10am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/8 "2015-03-28T04:10:11Z")

</div>

I’d too would be interested in this.  
Got a github link you can post or M me? 😉

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 28, 2015, 7:37am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/9 "2015-03-28T07:37:08Z")

</div>

Reply on any broken plugins, if author has abandoned we will close or move out of plugin category

---

<div class="post-metadata">

### Author: ![Fabio\_Machado\_de\_Oli](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@Fabio\_Machado\_de\_Oli](https://meta.discourse.org/u/Fabio_Machado_de_Oli)
#### Post date: [September 1, 2015, 2:25am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/15 "2015-09-01T02:25:00Z")

</div>

It’s broken for me too, and last commit was feb, 2014

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 1, 2015, 2:26am UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/16 "2015-09-01T02:26:01Z")

</div>

np, moved to broken plugins for now. @crob611 let me know if you fix it.

---

<div class="post-metadata">

### Author: ![crob611](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crob611/32/108022_2.png) [@crob611](https://meta.discourse.org/u/crob611)
#### Post date: [September 11, 2015, 8:56pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/17 "2015-09-11T20:56:19Z")

</div>

Sorry all for not keeping this updated. I’ll be glad to get it updated when I get a chance, or merge any pull requests if someone else wants to fix it. Would love to get back into making some other Discourse plugins.

---

<div class="post-metadata">

### Author: ![chasovoy85](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@chasovoy85](https://meta.discourse.org/u/chasovoy85)
#### Post date: [October 18, 2016, 1:45pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/19 "2016-10-18T13:45:34Z")

</div>

i fix

> **[GitHub - chasovoy85/discourse-image-gallery at chasovoy85-patch-1](https://github.com/chasovoy85/discourse-image-gallery/tree/chasovoy85-patch-1)**
>
> chasovoy85-patch-1

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [October 18, 2016, 2:42pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/20 "2016-10-18T14:42:48Z")

</div>

Nice. You should make a pull request to @crob611’s original repo.

---

<div class="post-metadata">

### Author: ![chasovoy85](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@chasovoy85](https://meta.discourse.org/u/chasovoy85)
#### Post date: [October 18, 2016, 2:48pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/21 "2016-10-18T14:48:01Z")

</div>

I’m a novice in GitHub… but I’ll try

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [October 18, 2016, 2:49pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/22 "2016-10-18T14:49:25Z")

</div>

Just click here 😉

 ![](https://global.discourse-cdn.com/meta/original/3X/f/d/fdd26a0d6cca3b7177bea04cc1fbfa702c5f42fe.png)

---

<div class="post-metadata">

### Author: ![chasovoy85](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@chasovoy85](https://meta.discourse.org/u/chasovoy85)
#### Post date: [October 18, 2016, 2:54pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/23 "2016-10-18T14:54:59Z")

</div>

Thanks. Done 🙂

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [October 18, 2016, 3:01pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/24 "2016-10-18T15:01:44Z")

</div>

Great. If you don’t hear from @crob611 in a week or so we can point to your fork instead of the defunct repo and move this out of #plugin:broken-plugin, provided someone else confirm that it’s working!

---

<div class="post-metadata">

### Author: ![chasovoy85](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@chasovoy85](https://meta.discourse.org/u/chasovoy85)
#### Post date: [October 18, 2016, 3:02pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/25 "2016-10-18T15:02:49Z")

</div>

Cool. Thanks! 😀

---

<div class="post-metadata">

### Author: ![crob611](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crob611/32/108022_2.png) [@crob611](https://meta.discourse.org/u/crob611)
#### Post date: [October 18, 2016, 3:06pm UTC](https://meta.discourse.org/t/image-gallery-plugin/12574/26 "2016-10-18T15:06:04Z")

</div>

I can merge it in, but I’m not setup to test to make sure it’s working or anything. I’d also be glad to transfer the repo if someone else would like to maintain it going forward. @chasovoy85?

[Next page](https://meta.discourse.org/t/image-gallery-plugin/12574.md?page=2)
