how to inline images in comments

Le Wang's Avatar

Le Wang

10 May, 2012 01:04 AM

Surely this should be easy? I need to be able to show my attached images inline in context.

I used to hack around this by saving a draft of my comment with all the attachments, then embedding the image's URLs, but now that's stopped working as well. What's your canonical solution for this?

  1. 1 Posted by Nicole on 10 May, 2012 02:17 AM

    Nicole's Avatar

    Embedding the image URL should still work. Can you link to an example where it stopped working for you and we can take a look? I embed images from Skitch in our internal Lighthouse account daily.

    There's a development ticket for making attachments show as inline images, but it's not in active development and not likely to be in the next few cycles either.

    Thanks,
    Nicole

  2. 2 Posted by Le Wang on 10 May, 2012 03:36 AM

    Le Wang's Avatar

    I see that it works when I embed the lighthouse image url, but if I open
    the image in a new tab the URL is for Amazon aws, that link does not work.

    Now it's hard for me to correlate the filename to the actual image, because
    when I actually get to see the image, the URL is not right.

    A preview of the attachment would help.

  3. 3 Posted by Nicole on 10 May, 2012 03:32 PM

    Nicole's Avatar

    Le -

    Yes, unfortunately if you're using the attachments URL from what you're uploading to the ticket you won't be able to see the image.

    If you already had the image URL you would be able to do something like:

    <div class="thumbnail"><img src="link_to_your_image.jpg"></div>
    

    And you'd be able to see that in the ticket proper.

    We'll update this discussion when we have more on the status of the development ticket for inline images.

    Thanks,
    Nicole

  4. Nicole closed this discussion on 10 May, 2012 03:32 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac