# Image URLs not rendered as images on import

**URL:** <https://meta.discourse.org/t/image-urls-not-rendered-as-images-on-import/48840>\
**Category:** Development\
**Created:** [2016 年8 月 19 日 00:16 UTC](https://meta.discourse.org/t/image-urls-not-rendered-as-images-on-import/48840 "2016-08-19T00:16:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2016 年8 月 19 日 00:16 UTC](https://meta.discourse.org/t/image-urls-not-rendered-as-images-on-import/48840/1 "2016-08-19T00:16:31Z")

</div>

I’ve written an importer for a custom database of external images. It’s based on `import_scripts/vanilla_mysql.rb` (and `base.rb`) (pulled just today). It’s creating posts that look good right to me (a few problems with categories yet to work out). Posts have lines like

```
http://example.com/veryFineImage.jpb

```

in them.

- When I look at them the URL isn’t displaying the image.
- If I edit the image, it shows the image in the preview window.
- If I edit and add a space anywhere in the post the image is displayed as expected.

“No problem!” thinks me "just rebake the posts. I do a

```
bundle exec rake rebake

```

on my development box. It rebakes the posts Or so it claims!!!

But, no joy. The image urls still just show up as urls.

On a related note, once I figure this out, will Discourse pull those images to it’s local store like it normally does? Do I need to do anything to force it to do it to all of them? I don’t see any obvious thing to poke in sidekiq.

---

_[View the full topic](https://meta.discourse.org/t/image-urls-not-rendered-as-images-on-import/48840)._
