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
Inline images from markdown are showing blur. #22488
Comments
Hey @bhavikji, it looks like you are trying to use The other part I had to fix was your image paths. They worked fine for me in develop, but when I did a production build, they were broken again. Your image paths should be relative. Since you are using the For example: the ![Test](thank_you_1920x1080.jpg "Test") and it worked. Since you're using Netlify CMS, I wonder: do you have control over the paths generated for those inline images? |
Hey @Js-Brecht: Thank you for helping me out can you please share your repo so that, I will match my config with yours |
I used your example repository. I made ...
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1920,
withWebp: true,
// quality: 70,
},
},
... and your ---
template: blog
master_category: Books
featuredImage: ../../static/blogs/thank_you_1920x1080.jpg
fullBanner: true
seoTitle: Test
title: Test
slug: /blog/test
draft: false
date: 2020-03-23T10:43:25.368Z
dateModified: 2020-03-23T10:43:25.406Z
keywords: Test
tags:
- Test
description: Test Description
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et tincidunt leo, a sagittis lacus. Ut id metus lacinia tortor aliquam luctus sed a orci. Aenean tincidunt augue velit, aliquet dignissim eros eleifend nec. Nulla eget convallis metus, vestibulum viverra erat. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nulla ipsum sapien, ultricies vel lacinia quis, bibendum porta tortor. Duis massa elit, pharetra ut sem venenatis, consequat ullamcorper dui. Vestibulum non magna id elit fermentum posuere. Donec sagittis varius felis, et blandit nisi convallis et. Nunc dictum nec massa semper rutrum. In eu facilisis felis, ut dignissim nibh. Vivamus felis massa, sodales eget est a, ornare lacinia magna. Donec sit amet nulla ex.
![Test](thank_you_1920x1080.jpg "Test") If I remember correctly, you won't be able to make the |
@Js-Brecht: Hey this resolves the issue this works like charm! <3 |
Good to hear! I'm going to close this now, but feel free to comment again if you have more issues. |
@Js-Brecht : Just a quick question for |
I don't seem to have any problems with files with |
It still seems a little strange to me that it's not working unless you do
Using |
Okay, I've figured out why it's not loading correctly. You are using the For it to do that, you have to have // gatsby-browser.js
import 'lazysizes'; So the first answer was basically a workaround, but this is the actual fix. Sorry about that. |
@Js-Brecht : Ok let me give me a try! |
Description
Hey folks, I recently moved my blog to Gatsby, and here I am using Netlify as my CMS, the images which I added via Netlify CMS inline in Markdown aren't showing up properly, instead, it is appearing blurred the live URL of the same is here Demo
Steps to reproduce
Here I am attaching my repo to reproduce this issue REPO LINK
Expected result
The images should appear clear in the blog detail page which is uploaded through Netlify admin, ie., it should able to read the image from inline Markdown.
Actual result
The image is appearing blur in blog detail page added using Netlify CMS
Demo
Environment
The text was updated successfully, but these errors were encountered: