Top

MARKDOWN format - how to indicate Image Size ?

Répondu

Commentaires

5 commentaires

  • Commentaire officiel
    Pascal BORSCHNECK

    Hi Patrice,

     

    The only tags supported are (https://hub.openrainbow.com/#/documentation/doc/sdk/node/guides/Answering_chat_message) as described:

    Interaction with Rainbow clients

    At this time of writting, Rainbow clients manage Message language and are able to display messages using a Markdown content type. This feature is not officially supported but if your Node.JS application interacts with a Rainbow official client, this can help.

    Here is the list of Markdown tags supported by the Rainbow official Web application (Rainbow Web client and Rainbow Desktop client):
    • Headers: #H1 to ######H6
    • Emphasis: *italics* and **bold**
    • Lists: -, + or `* ``
    • Links: [a link](https://www.hub.openrainbow.com)
    • Images ![alt text](https://hub.openrainbow.com/img/logohub.svg)
    • Code: Inline code has back-ticks around it.
    • Blockquotes: > a Blockquote.
    Note: Other Markdown tags can be used specifically if you have provided your own end-user application but will not be rendered correcly in the Rainbow official clients.

    Subject is used when displaying Rainbow notification messages.

    Note: At this time of writing, Markdown is not supported by the Rainbow mobile clients.

    and no way to force an image size.

    No way described also in official Markdown doc: https://daringfireball.net/projects/markdown/syntax#img

    Up to you to resize the image before including them to the message.  Or if your server is "resize on the fly" - capable, use it 
    For example on some servers: src="/images/the_img.jpg?w=120" to force it at 120px width

    Warning also to share an https// image url !  Instead of that all clients in HTML5 will display a Warning "mixed content".

     

    Best regards,
    Pascal

     

    Actions pour les commentaires Permalien
  • Patrice COHAUT

    On-the-fly resizing must be supported by Rainbow Clients (web, desktop, smartphone) . So if you don't support, as indicated, this means that I must must have a "resizing process" on server side which is very time-consuming and unefficient. Bad news

    P. 

    0
    Actions pour les commentaires Permalien
  • Pascal BORSCHNECK

    Please add a request to Markdown project for adding an image size to

    • Images ![alt text](https://hub.openrainbow.com/img/logohub.svg)

    =>  not linked to Rainbow.

     

    Please read my reply.  You said "On-the-fly resizing must be supported by Rainbow Clients", I said: up to your server, where the image is hosted (not Rainbow servers) to resize the image if possible.

    Or as I said also, before attaching the IMG in your Markdown message, up to you to resize it in your code !

    0
    Actions pour les commentaires Permalien
  • Patrice COHAUT

    understand but when the IMG is a LINK (URL to another site than us). [like in NEWS FEEDS] where we link to the outher server image, the lack of resizing support on Rainbow imposes some IMG download + resize + storage for nothing while a simple MARKDOWN support would be enough. 

    0
    Actions pour les commentaires Permalien
  • Pascal BORSCHNECK

    Client's side, if you share an image in a conversation, it's also an URL link, as if it is stored Rainbow's side. 
    And the resize is also done "on the fly" client's side or server's side for larger images.

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

Vous n'avez pas trouvé ce que vous cherchez?

  • Contactez-nous

    Vous avez des questions? Laissez-nous un message pour obtenir plus d'informations.

    Contactez-nous
  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message