Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images not shown properly in chat window #39

Closed
nevrending opened this issue Nov 20, 2016 · 6 comments
Closed

Images not shown properly in chat window #39

nevrending opened this issue Nov 20, 2016 · 6 comments

Comments

@nevrending
Copy link

Image message sent successfully (200 OK) but image is not displayed properly in chat window

203.104.146.152 - - [20/Nov/2016:13:28:16 +0700] "POST /callback/line/official HTTP/1.1" 200 12 "-" "LineBotWebhook/1.0"
203.104.146.152 - - [20/Nov/2016:13:28:21 +0700] "POST /callback/line/official HTTP/1.1" 200 12 "-" "LineBotWebhook/1.0"
203.104.146.152 - - [20/Nov/2016:13:28:24 +0700] "POST /callback/line/official HTTP/1.1" 200 12 "-" "LineBotWebhook/1.0"
203.104.146.152 - - [20/Nov/2016:13:31:39 +0700] "POST /callback/line/official HTTP/1.1" 200 12 "-" "LineBotWebhook/1.0"
203.104.146.152 - - [20/Nov/2016:13:34:57 +0700] "POST /callback/line/official HTTP/1.1" 200 12 "-" "LineBotWebhook/1.0"

screen shot 2016-11-20 at 13 44 40

  • Image URL is correct and can be opened from browser
    https://line.yefta.com/images/baka.jpg
  • SSL cert is not the ones from Let's encrypt nor Cloudflare
  • Images can be displayed properly if running the code using local php (php -S) and ngrok

screen shot 2016-11-20 at 13 47 12

@nevrending nevrending changed the title Cannot display image Images not shown properly in chat window Nov 20, 2016
@sprabowo
Copy link

you must give different file for ImageMessageHandler between originalContentUrl and
previewImageUrl. previewImageUrl must have ratio 1:1. in kitchensink example, originalContentUrl have the same file with previewImageUrl so image cant be load.

@taufansatrio
Copy link

Hello, I'm currently having a similar problem although I'm using different Url for originalContentUrl and previewImageUrl. Is there any other possible cause?

Thanks in advance

@sprabowo
Copy link

@taufansatrio maybe you must completed read the docs here https://devdocs.line.me/en/#send-message-object for the spesification of image

@taufansatrio
Copy link

@sprabowo I've read that and ensured the images fulfill the specification. Just tried changing the URLs to Dropbox's public link with same image and they load just fine. SSL cert/HTTPS issue perhaps?

@sprabowo
Copy link

sprabowo commented Nov 23, 2016

@taufansatrio yeah i think about https. i use free ssl from letsencrypt, locate the images in folder public/tempdir and running we.ll

@nevrending
Copy link
Author

I'm closing this as apparently I'm the only one who cannot see the images. Lol
Friends said that the images loads just fine on their Line client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants