getgrav / grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony

Home Page:https://getgrav.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Images don't get recognised as such

jcpwdev opened this issue · comments

Hi there,

maybe you can help me out on this one:

I copy (via terminal or php, tried both) a chunk of folders and md-files (representing some blog posts) into my user/pages/blog/ directory in Grav.

As expected the pages are available just fine afterwards. Except the images. every blog post has its own images in his folder - but they don't get recognised as images, it seems.

In the Admin panel they just have the "JPG" text as thumbnail. when using them in markdown no image gets output, but just the (alt)-Text as a <p> tag. opening the images via browser shows them normally.

if I upload a new image via admin panel this new image works just fine and be used as expected.

I suspect that the "externally added" pictures are missing something that helps Grav to determine their type and how to use them - sadly I am at a loss here what this could be. my tries of debugging so far have been fruitless, pretty new to Grav.

cheers and many thanks!

Can you zip a page folder so we can see what you are trying to do?

Hi Andy,

thanks for reaching out!

I have added a working example (uploaded normally via Grav admin).

blogpost.zip

For further clarification (if needed):
how a working and not working image get displayed in Grav admin:
media view in grav admin

and how they render as html:
generated html

Are you talking about being broken only the thumbnail in the Page media field?

They actually all show up fine for me:
CleanShot 2022-02-28 at 11 41 32@2x

And they all render fine on frontend and in preview. I'm not seeing anything broken.

Even deleting the image and re-uploading it looks fine:
CleanShot 2022-02-28 at 11 43 35@2x

ooff, that's a bummer. sounds to me like I have a problem with the deployment environment. good for you, nothing to do here. bad for me. yikes.

thanks for your time and fast response, I think we can close this here :/