# PNG's a no show

**URL:** <https://meta.discourse.org/t/pngs-a-no-show/71634>\
**Category:** Support\
**Created:** [2017年十月8日 18:29 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634 "2017-10-08T18:29:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月8日 18:29 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/1 "2017-10-08T18:29:53Z")

</div>

Our forum is having problems displaying images. Sometimes they show, but most of the time they don’t. Not sure how to track this down, our image max display size is 860x860, max upload size is 4M.  
Here is a thread which shows the difficulties:  
[https://forum.valentina-project.org/t/pngs-a-no-show/1964](https://forum.valentina-project.org/t/pngs-a-no-show/1964)

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月8日 18:38 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/2 "2017-10-08T18:38:59Z")

</div>

Hi! We love the Discourse software, our users are really helping each other quite a lot.  
We use a lot of screenshots (.png, .svg) and other images to provide software support.  
So it’s unfortunate that we’ve sort of hit some snags with displaying images.

Here’s an example. I’ve posted two .svg files. These files exist under the uploads directory tree, and the posts’ links to these files are correct. But the .svg files aren’t being displayed. When weright click on the empty boxes to open in a new tab or copy the image address we get this url: /images/transparent.png.

[https://forum.valentina-project.org/t/request-for-new-measurement-point-in-tape/1973/11](https://forum.valentina-project.org/t/request-for-new-measurement-point-in-tape/1973/11)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十月8日 20:45 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/3 "2017-10-08T20:45:39Z")

</div>

Do they work here? Please upload an example here.

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月8日 22:06 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/4 "2017-10-08T22:06:40Z")

</div>

Yeah we already know that there’s an issue on our forum, but we can’t pinpoint what caused it. We’re on digital ocean, running ubuntu 14.04, and have an SSL cert.

Interesting, this svg file doesn’t work here, but the next svg file at the end of this post displays here properly. Neither of these svg files are displaying on our forum.  
Logo-400.svg, 500 x 377 in (upload://vV2kqp94XodzHtRWyekld9ibchs.svg)

 ![Logo-400](https://global.discourse-cdn.com/meta/original/3X/d/f/dfb5f67b3f5398153aa22effabae747be8cab5d2.svg)

Here’s the Logo-400.svg from a screenshot in the default image viewer on Ubuntu 16.04:

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/b/1bad73bbf483e30770b72c1f8980b9cc625923c0.png)

BlueJazClub.jpg, 281x499 in (upload://fTxzpJHb9e9OjOQ4SXMYMy4Lwx.jpg)

 ![BluJazClub](https://global.discourse-cdn.com/meta/original/3X/0/1/01cbff8625e761bcaa9ac2a278e7485bbbbe379d.jpg)

bustpoint\_to\_shoulder\_center.svg, 258x500, in (upload://1qpJmc9XhEzv6e3oyPwZabZthcA.svg)

 ![bustpoint_to_shoulder_center](https://global.discourse-cdn.com/meta/original/3X/0/9/09fe9462c7ee50983f3d56566942815997ea54d8.svg)

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月8日 22:21 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/5 "2017-10-08T22:21:25Z")

</div>

Here is an SVG with a solid white background and includes an image:  
FTB\_EpicMod.svg, | 320x352 in (upload://2Af3Xa8MUy2FNBGSzhqYCIfaI9k.svg)  
Doesn’t display.

 ![FTB_EpicMode](https://global.discourse-cdn.com/meta/original/3X/1/2/121d28475a2a3c38515e3e1066ac6ba1423f4792.svg)

Same file, removed the image, added a grey square, displays fine.

 ![FTB_EpicMode2](https://global.discourse-cdn.com/meta/original/3X/f/7/f70a9f08375c696037975e2706834179ef925df0.svg)

This is possibly a separate problem from .png no-show.

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月8日 22:24 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/6 "2017-10-08T22:24:39Z")

</div>

The BluJazClub.jpg above which displays on this forum, doesn’t display on our forum:  
[https://forum.valentina-project.org/t/pngs-a-no-show/1964/5?u=slspencer](https://forum.valentina-project.org/t/pngs-a-no-show/1964/5?u=slspencer)

---

<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:** [2017年十月8日 22:25 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/7 "2017-10-08T22:25:56Z")

</div>

svg is a quirky format, unless it displays fine in browsers I would not expect it to work at all, also you are going to have to whitelist the format.

> [@slspencer](#):
>
> The BluJazClub.jpg above which displays on this forum, doesn’t display on our forum:

Are you running latest?

```plaintext
cd /var/discourse
git pull
./launcher rebuild app

```

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十月9日 00:39 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/8 "2017-10-09T00:39:46Z")

</div>

Svg should not be expected to work in every scenario, because there are many security restrictions on the content. Focus on the regular binary images.

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月9日 01:34 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/9 "2017-10-09T01:34:30Z")

</div>

> [@codinghorror](#):
>
> Focus on the regular binary images.

np, I created it as a separate issue, but someone combined that issue into this one, so I just went with it 🙂 The binary images are my biggest concern.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十月9日 03:15 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/10 "2017-10-09T03:15:52Z")

</div>

Unless you can repro the binary image issue here, I am not sure how much we can help.

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月9日 03:42 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/11 "2017-10-09T03:42:00Z")

</div>

Ok, since you know more about Discourse than I do, could you suggest points along the process where this problem might occur? If you don’t mind, could you walk through the process with me:

1. File upload/storage: The files are uploaded properly, they exist and there are no errors in the files, they can be accessed manually, etc.
2. File retrieval: Which Discourse processes retrieve these files? Which log settings could issue error messages about image file retrieval?
3. File display: Which Discourse processes display the files? Which log settings could issue error messages about image file display?

---

<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:** [2017年十月9日 06:50 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/12 "2017-10-09T06:50:25Z")

</div>

I think before any of this, can you confirm you are using our official installer? Are you using s3 uploads or standard uploads? Have you ran:

```plaintext
cd /var/discourse
git pull
./launcher rebuild app

```

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月9日 16:08 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/13 "2017-10-09T16:08:55Z")

</div>

Hi @sam, thanks for the suggestion, last night I updated last week’s release via terminal window (cd /var/discourse, git pull, .launcher rebuild app) and the problem still exists. We don’t use Amazon s3 storage.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2017年十月9日 19:01 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/14 "2017-10-09T19:01:42Z")

</div>

> [@slspencer](#):
>
> We use a lot of screenshots (.png, .svg) and other images to provide software support.

I don’t have any explanations for your problem, but note that you can paste images directly into the composer. You don’t need to first paste into some other application to create and image to then upload.

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月11日 23:24 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/15 "2017-10-11T23:24:51Z")

</div>

Got the message that docker version not supported  
Installed docker-ce, now is my forum gone?

After running the latest Discourse update a few days ago, clicking the the download icon opens .txt files in a browser instead of downloading them, yet no Discourse settings were changed. Yet now .png files are displaying properly. So a deeper problem is occuring.

I implemented the Discourse/Docker periodic manual full update instructions and watched error messages.

All updates **.launcher rebuild app** I received an error message that docker 17.05 is not supported, minimum required is 17.06.02. Ubuntu has changed the package name from **docker-engine** to **docker-ce**. Is it safe to install docker-ce, as this won’t be an upgrade? Because of the docker version preventing app rebuild, my forum is down. ☹ What do?

> [@Manually update Discourse and Docker image to latest](https://meta.discourse.org/t/how-do-i-manually-update-discourse-and-docker-image-to-latest/23325):
>
> bookmark This guide provides step-by-step instructions for manually updating Discourse, the Docker container, and the Ubuntu operating system on a self-hosted setup. person_raising_hand Required user level: System Administrator warning SSH access to the server. If you self-host Discourse, you occasionally need to run a manual update via the command line to get the latest security releases and newest libraries. These updates are not picked up in admin/upgrade, which is why you’ll occa…

---

<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:** [2017年十月11日 23:28 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/16 "2017-10-11T23:28:22Z")

</div>

Yes docker ce is what you want to use

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [2017年十月11日 23:43 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/17 "2017-10-11T23:43:55Z")

</div>

Hi @Sam,  
Yeah I installed docker-ce, per [https://askubuntu.com/questions/472412/how-do-i-upgrade-docker/473720](https://askubuntu.com/questions/472412/how-do-i-upgrade-docker/473720) and [https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04)

Then ran .launcher rebuild app, which initiated a download of the base Discourse image.  
I stopped it, figured this would wipe out my forum files.  
Should I let this run?

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [2017年十月11日 23:46 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/18 "2017-10-11T23:46:13Z")

</div>

> [@slspencer](#):
>
> Logo-400.svg, 500 x 377 in (upload://vV2kqp94XodzHtRWyekld9ibchs.svg)

I see a big black square in both the browser and inkscape which matches the source:

```plaintext
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="svg4206" version="1.1" inkscape:version="0.91 r" width="500" height="377.5" viewBox="0 0 500 377.5" sodipodi:docname="Logo-400.svg">

  <defs id="defs4210"/>

  <g id="g4218">
    <rect y="-53.42" x="-40.32" height="466.8" width="589.4" id="rect4216" style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3.6222;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"/>

  </g>
</svg>

```

> [@slspencer](#):
>
> FTB\_EpicMod.svg, | 320x352 in (upload://2Af3Xa8MUy2FNBGSzhqYCIfaI9k.svg)

I don’t actually see an image in this file, just a white background. if you still have the original can you check to see if the contents have changed? I see:

```plaintext
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="320.9mm" height="352.2mm" viewBox="0 0 320.9 352.2" version="1.1" id="svg8" inkscape:version="0.92.2 (unknown)" sodipodi:docname="FTB_EpicMode.svg">
  <defs id="defs2"/>

  <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(44.79,25)">

    <rect style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.3;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.265;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate" id="rect944" width="321" height="352.2" x="-44.79" y="-25"/>
  </g>
</svg>

```

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2017年十月11日 23:46 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/19 "2017-10-11T23:46:20Z")

</div>

Yes. Your forum files are safe in `/var/discourse/shared/standalone`.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十月11日 23:47 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/20 "2017-10-11T23:47:47Z")

</div>

It is best not to muddy the waters even further at this point. Svg gets downgraded a lot if the text content is on our unsafe blacklists. Focus on pngs first.

[下一頁](https://meta.discourse.org/t/pngs-a-no-show/71634.md?page=2)
