Sorry if this asked before but how do you have an image inserted into a story?

Discussion in 'CHYOA General' started by EldritchProxy, Aug 14, 2020.

  1. EldritchProxy

    EldritchProxy Virgin

    So I’ve recently joined the site and I’ve been doing my best to try and come to terms with how the syntax works but I’ve hit a snag that I can’t work out what I’m doing wrong and the guide isn’t clear enough at least for myself.
    As I understand to insert a picture into a chapter you need to use square brackets around what you want to call the image followed by regular bracket around the image Link you want to show in the chapter however when I do this it creates a link rather than show the image.

    I’m hoping that if it’s not too much trouble if someone can further breakdown how inserting images work for me please? Also anything about the image properties and how or where I should upload images as I wish the illustrate parts of the story content.

    I am terribly sorry if this has been asked a million times but I’ve just not had any luck finding a more comprehensive breakdown to the ins and outs of this on the forums that isn’t just linking back to the guide since for me I sometimes find I need like a very clear easy to follow step by step guide as stuff sometimes doesn’t click like it does for other people.

    Thank you for your time and reading this.
     
  2. Ben Rosewood

    Ben Rosewood Really Experienced

    gene.sis and EldritchProxy like this.
  3. EldritchProxy

    EldritchProxy Virgin

    I’ve tried this but I seem to get a box with the word I used inside with no image of the picture and I’ve tried both types of links I get from the site one being the image link the other being the full site url of the image
    The site I’m using currently is DeviantArt as I’m just testing to try and get the format right but is it possible that how images are stored on there causes it to not work?

    also I should add I am using an iPad so maybe something is not supported with the device?
     
  4. EldritchProxy

    EldritchProxy Virgin

    Ok so I worked it out and I’m now very confused at how this works since from the way it was explained in the guide it seemed you needed to use syntax to insert an image however I copied and pasted an image into the chapter like one would do on a word document and it remained when I saved
    I have a lot of questions and one would be is this due to using a mobile device?
     
  5. HaremStarter

    HaremStarter Really Experienced CHYOA Backer

    ![description](url) Is what you need to do to insert an image.
     
    EldritchProxy likes this.
  6. Spindizzy

    Spindizzy Really Experienced

    Not all sites allow linking directly to images. If you find using the image url results in a broken link you may need to try a different host. Also Chyoa doesn't support some of the newer image formats which can result in a broken link too.
     
    EldritchProxy likes this.
  7. EldritchProxy

    EldritchProxy Virgin

    Ahhh that explains it thank you for the info
    Just for reference do you know what are the image formats best to use or recommended sites to upload images too?
     
  8. Spindizzy

    Spindizzy Really Experienced

    I use a NSFW bloggger blog for images personally and jpg and gif formats.
     
    RomPerv, gene.sis and EldritchProxy like this.
  9. EldritchProxy

    EldritchProxy Virgin

    Thank you I’ll have a look into it
    I’m kinda new to this whole side of the internet so I’m not that well versed on where I should go but this will help a lot
     
  10. gene.sis

    gene.sis CHYOA Guru

    You should definitely avoid drag and drop of images into chapters. You might be able to save the chapter but depending on the browser's processing, viewing that chapter will then result in an error.

    CHYOA supports all image formats that go into IMG tags.

    The problem is that IMG tags don't support video formats.

    It is also important to use the image link that actually shows/loads the image and nothing else.
     
    insertnamehere likes this.
  11. insertnamehere

    insertnamehere Really Really Experienced

    This may be pedantic, but:
    That's not quite correct. You need an exclamation mark before it.

    CHYOA uses the []() format to link things from another site. The ! symbol tells CHYOA that you want an image instead of a link. In other words:

    Link:
    [Link text](URL)

    Image:
    ![](URL)

    If you're forgetting the ! symbol, then this:
    is exactly what will happen.

    Of course, that assumes you're using an actual image URL that's a supported format, but I don't recall DeviantArt using any strange image formats. You may want to post the URL you're trying to use.
     
    gene.sis likes this.
  12. gene.sis

    gene.sis CHYOA Guru

    adding on this...
    If you put some text between the brackets
    ![alternative text](URL)
    the browser should show "alternative text" when the link is broken.

    Note: alternative text can cause problems if RTE is activated
     
    Last edited: Nov 21, 2020
    insertnamehere likes this.
  13. gene.sis

    gene.sis CHYOA Guru

    GIFs work the same way.

    It is important that you use the direct link to the picture.
    On many sites, you have to dig somewhat to get there.

    (If you have a specific link, I can take a look at why it doesn't work.)
     
  14. gene.sis

    gene.sis CHYOA Guru

    Well, it doesn't work as the site doesn't allow hotlinking.

    So you can only see it because you have opened the direct link before. (I guess testing it with a different browser should show you the error)
     
    Last edited: Aug 17, 2020
  15. gene.sis

    gene.sis CHYOA Guru

    This is currently not possible.
     
  16. RomPerv

    RomPerv Virgin

    Sometimes it's possible to get the url for a thumbnail instead of a full sized picture. To do it, you right click and copy the image location of the thumbnail itself. For example https://forum.chyoa.com/data/avatars/m/98/98157.jpg?1594666594 is my picture's thumbnail and https://forum.chyoa.com/data/avatars/l/98/98157.jpg?1594666594 is a slightly bigger version.
     
  17. Nissen

    Nissen Virgin

    Hi all,

    Instead of opening a new thread I'll ask here as this thread is not old, and my question is related.

    I too have some issues with getting links to images from certain sites to work, unless I upload them to imgur, and then link to there. Then it works like a charm.

    But I would love to be able to link directly, without having to use imgur as just seem to be more work.

    So did some testing and exploration, and found this story chapter:
    https://chyoa.com/chapter/[Character-pictures].813634

    Now look at the picture of Anna Leperman (Tessa Lane):
    https://cdni.pornpics.com/1280/7/61/44375490/44375490_030_4b7f.jpg

    Looks to me like the author could link this picture to the story, without use image hosting like imgur, am I right?

    So, I figure the tag for the link in the story should look like this:
    ![Test](https://cdni.pornpics.com/1280/7/61/44375490/44375490_030_4b7f.jpg)

    My problem is this doesn't work for me, and all I get is this: [​IMG]

    However, if I use this gif, linked directly from the source, it work perfectly, and the gif shows in the chapter:
    ![Test](https://megapornx.com/xxx/gorgeous-tits-of-shione-cooper.gif)

    I'm confused... can anybody explain why the jpg doesn't work for me, when it appears to work for another author? Or am I doing something wrong?

    Thanks in advance.
     
    gene.sis likes this.
  18. gene.sis

    gene.sis CHYOA Guru

    If you have RTE activated, leave the brackets empty.
    So
    ![](https://cdni.pornpics.com/1280/7/61/44375490/44375490_030_4b7f.jpg)
    should work.

    In
    ![Test](https://cdni.pornpics.com/1280/7/61/44375490/44375490_030_4b7f.jpg)
    RTE will escape the underscores "_", so they become "\_". This will break the link. (I have no idea why RTE does that.)

    The other user has left the brackets empty. Alternatively, you could also deactivate RTE and use Markdown exclusively for formatting your chapters.
     
    RomPerv and Nissen like this.
  19. Nissen

    Nissen Virgin

    Thanks, that did it!

    You just saved me a lot of time and efford. Thanks again :)
     
    gene.sis likes this.
  20. gene.sis

    gene.sis CHYOA Guru

    Actually, it was another user who pointed me to the solution a few weeks ago.
    And your example allowed me to reproduce the problem ^^