<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Devjoe</title>
    <description>The latest articles on Forem by Devjoe (@devjoe).</description>
    <link>https://forem.com/devjoe</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2062190%2Fc59adad5-5f0d-4bce-a252-2457862af6d3.png</url>
      <title>Forem: Devjoe</title>
      <link>https://forem.com/devjoe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/devjoe"/>
    <language>en</language>
    <item>
      <title>Images Cropped and Half Loading Issue on Website</title>
      <dc:creator>Devjoe</dc:creator>
      <pubDate>Thu, 12 Sep 2024 08:23:03 +0000</pubDate>
      <link>https://forem.com/devjoe/images-cropped-and-half-loading-issue-on-website-580g</link>
      <guid>https://forem.com/devjoe/images-cropped-and-half-loading-issue-on-website-580g</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz15cjusb1o3lqt3w6o6l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz15cjusb1o3lqt3w6o6l.png" alt="Image description" width="800" height="161"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I'm currently facing an issue on my website "&lt;a href="https://spiritualgleam.com" rel="noopener noreferrer"&gt;https://spiritualgleam.com&lt;/a&gt;" where some images are either cropped or only half-loading. This happens randomly on different pages, and I haven't been able to pinpoint the exact cause.&lt;/p&gt;

&lt;p&gt;After inspecting the site, I noticed that it might be related to how the CSS or HTML handles the image dimensions and loading behavior. Here's a brief snippet of the image code I'm using:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Re8cCDW4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/image-url.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Re8cCDW4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/image-url.jpg" alt="Image description" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm using object-fit: cover to ensure images maintain aspect ratio, but it seems like this may be causing some images to appear cropped. Additionally, I suspect the loading="lazy" attribute could be contributing to the half-loading issue, especially if the images aren’t fully loaded before the user scrolls past them.&lt;/p&gt;

&lt;p&gt;Has anyone else experienced a similar issue? Could this be related to lazy loading or a different problem with how images are rendered? Any suggestions on how to resolve this would be greatly appreciated!&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
