# Letter avatars out of alignment with ImageMagick update

**URL:** <https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671>\
**Category:** Bug\
**Created:** [2015年九月23日 22:36 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671 "2015-09-23T22:36:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OnceWas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oncewas/32/40734_2.png) [@OnceWas](https://meta.discourse.org/u/OnceWas)\
**Post date:** [2015年九月23日 22:36 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/1 "2015-09-23T22:36:03Z")

</div>

Here I go again with the avatars…

This is probably not a bug now that 1.4 has been released, but since I am not quite ready to upgrade our live site yet, I have restricted our site to Discourse 1.4b9. However, when I rebuilt Discourse to add a plugin this week, a Discourse base image update (samsaffron/discourse:1.0.13) has brought a new version of ImageMagick with it that has left all my letter avatars vertically misaligned.

The end result is that all my letter avatars now look like this:

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

 ![](https://global.discourse-cdn.com/meta/original/3X/4/1/4119c55e86b47b3a8d8f35966c67fd77f9a1c7bd.png)

Prior to September 22, the ImagMagick version was 6.9.1-3 Q16 x86\_64 2015-05-29, and after September 22, the version is now 6.9.2-3 Q16 x86\_64 2015-09-22.

Can I downgrade ImageMagick in my container and rebuild the letter avatars, at least until I’m ready to go to the official 1.4 release?

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2015年九月23日 22:42 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/2 "2015-09-23T22:42:05Z")

</div>

This needs to be fixed because people are still allowed to use the local avatar generation instead of the external service.

---

<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:** [2015年九月24日 00:26 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/3 "2015-09-24T00:26:55Z")

</div>

I will get a fix backported into beta and stable … in the mean time just add

```plaintext
base_image: samsaffron/discourse:1.0.12

```

To your yaml config and rebuild.

**remember to take it out when you upgrade, you don’t want to be stuck on old image forever**

Raised issue on Image Magick forum: [Gravity center + annotate behavior change in 6.9.2-3 - Legacy ImageMagick Discussions Archive](http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=28403)

---

<div class="post-metadata">

**Author:** ![OnceWas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oncewas/32/40734_2.png) [@OnceWas](https://meta.discourse.org/u/OnceWas)\
**Post date:** [2015年九月24日 17:06 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/4 "2015-09-24T17:06:14Z")

</div>

If anybody is wondering where they should add

```
base_image: "samsaffron/discourse:1.0.12"

```

in the yaml config file, it goes right at the top 🙂

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [2015年九月30日 11:12 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/5 "2015-09-30T11:12:09Z")

</div>

For anyone following along, I’ve isolated the problem to [this commit](http://git.imagemagick.org/repos/ImageMagick/commit/61315aae476250718ffecb6fcea2f8c66a199a92) which fixes [this reported bug in ImageMagick](http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=27451). I have no idea yet how to fix it, but I’m going to keep chipping away at it.

---

<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:** [2015年十月7日 00:02 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/6 "2015-10-07T00:02:43Z")

</div>

Looks like it is getting fixed thanks to @mpalmer’s research !!!

> **[Gravity center + annotate behavior change in 6.9.2-3 - Legacy ImageMagick...](https://jqmagick.imagemagick.org/discourse-server/viewtopic.php?p=126317)**

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [2015年十月8日 09:43 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/7 "2015-10-08T09:43:29Z")

</div>

The issue is now fixed in ImageMagick’s git tree (as of 60001c3). There doesn’t appear to be a tarball release yet, but I’m sure there’ll be one soonish.

---

<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:** [2015年十二月1日 01:20 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/8 "2015-12-01T01:20:18Z")

</div>

Pretty sure this is all sorted now… closing!

---

<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:** [2015年十二月1日 01:20 UTC](https://meta.discourse.org/t/letter-avatars-out-of-alignment-with-imagemagick-update/33671/9 "2015-12-01T01:20:22Z")

</div>


