Closed ghost closed 4 years ago
@Paritosh-Negi I will look onto it asap.
Please confirm if you used the instructions from this project's readme.
Yes, I followed the instructions carefully twice; still, images are not loading.
@Paritosh-Negi can reproduce the issue, I guess it is the issue with buster tool.
Let me see if I can manually fix that with some changes to the script.
@Paritosh-Negi I have fixed the issue.
Checkout new demo
Steps to fix:
Delete the existing deploy.sh
script and replace with new content from https://raw.githubusercontent.com/abhijithvijayan/ghost-on-github-pages/master/deploy.sh
Give execute permission(one time only)
chmod u+x deploy.sh
Then deploy with
./deploy.sh
Feel free to reopen the issue if this doesn't solve your issue.
Thank you, all images are loading now 👍
Hi, Im still getting the error.
Did you use the new script? Also create a demo repo.
Yes Ive used the new script. Do I need a demo repo for it to work? Anyway thanks for your quick reply. Thought this thread was dead.
Heres the Demo Ive setup: https://paddy420smokers.github.io/cannalogie/ (You can see that the first changed image is not appearing.)
Git Rep: https://github.com/paddy420Smokers/cannalogie
Note: Ive changed the port from 2368 (Its already in use) to 2380. Ive changed the port in the new deploy.sh and in the development.js did I miss something?
Also Im struggling with the Image bug for a few weeks now. I hope you can help me! Thanks again for your great work :)
I can see that something messes up with the Image ending
Check the attached picture.
@paddy420Smokers I will look on it soon
Hi @abhijithvijayan , I'm facing the exact issue, Any updates on the solution?
This is an easy fix.
I didnt get any updates on this, hence I missed.
This is caused by new major changes in ghost and buster deprecation.
Even though buster is deprecated, minor tweaks on deployment script can make ghost fully work like before.
No @abhijithvijayan , I didn't see its fixed. The image extensions are getting messed up still.
Will get this fixed asap.
Could you attach the image source(the messed up content)?
I don't think the issue is with Buster
,
I tried doing the same thing with Wget, [I didn't use Buster here]
wget -r -nH -P docs -E -T 2 -np -k http://localhost:2368/
Ref
Still, I find the same issue coming up, probably the issue is due to the latest update of Ghost.
The deployment script here has fix for png files, all it takes is same code for jpg
If you could attach the html image broken source here, I can attach the resolution as well
Also thanks for suggesting way to use wget
I will migrate the instructions and script and fix all that issue and let you know
No @abhijithvijayan , I didn't use any JPG files, all I used is PNG. Please find the attachment.
@abhijithvijayan
This filename issue is occurring at three diff location which reflects at post-card-image
image class.
static/index.html
static/PUBLISHED_BLOG_TITLE/index.html
static/tag/CORRESPONDING_PUBLISHED_BLOG_TAG/index.html
@tejakummarikuntla
As this issue was raised once before, I pushed a fix to resolve this, it was resolved to jpg images only.
As now with png, its a simple fix. All it takes is copying these lines as that of png
Hi @abhijithvijayan , Adding the following lines which mimics the .jpg format in deploy.sh, fixed this!
find static -name *.html -type f -exec sed -i '''s#.pngg 600w#''.png 600w''#g' {} \;
find static -name *.html -type f -exec sed -i '''s#.pngng 1000w#''.png 1000w''#g' {} \;
find static -name *.html -type f -exec sed -i '''s#.pngpng 2000w#''.png 2000w''#g' {} \;
Could you send a PR for this?
Absolutely !!!!
@tejakummarikuntla Thanks.
Just one thing, buster generated urls as per user, does wget breaks the asset links or something without doing so?
But @abhijithvijayan , I think we gotta another problem. The mobile view from chrome is totally fine, but the entire webpage is totally messed up when I open the site on my mobile.
I faced this issue even before the .png fix [Only for this (Casper (default) theme)] Any possible solution? http://tejakummarikuntla.github.io/blog
I didn't find this issue when I left Buster and went for Wget approach. It was totally working fine. this is by using wget: http://tejakummarikuntla.github.io/bog_wget
@tejakummarikuntla Could you attach the live link of the site?
I will take a look at it. Probably wget broke something.
@abhijithvijayan ,
I tried using the png, jpg typo clearing bash script on Wget
generated files instead of Buster
generated files. It worked really well, I don't see any issues with the Mobile view now.
As we can see various issues are rising with Buster
which requires py2 dependency as well.
Why don't we use Wget
in this project instead of Buster
. What do you say?
Sure. I will accept PRs
wget can then replace p2 dependancy issue and buster deprecation.
I prefer ghost over everything I have ever used. It's so easy to use and SEO friendly and with wget, this can have SSG.
@tejakummarikuntla
Your build is not successful with patched links. I will fix the script.
@tejakummarikuntla Everything is set to use wget
The script fixes jpeg
, jpg
, png
image formats.
Everything seems to work flawlessly.
Try again with the latest script and feel to reopen this issue, if anything comes up.
Hi @abhijithvijayan ,
I have found some problem when I run your deploy.sh on my Macbook Pro, and I have fixed it :)
I will send the PR to you.
Demo URL: https://paritosh-negi.github.io/myghostblog/
Images are not loading because of wrong image format extensions.
Can anyone help me to fix this?