New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Glide Images Black Top Border

Demien Sokman April 27, 2021 by Demien Sokman

Sometimes my images have a black top border of 1 pixel, after I crop them with glide. Here is a snippet of the code that creates this images. In this case only the retina image has the black top border. Those anybody know why this happens?

<img class="object-cover shadow-lg mb-3 md:mb-0"
     src="{{ glide:url height="275" width="205" fit="crop_focal" }}"
     srcset="{{ glide:url height="275" width="205" fit="crop_focal" }} 1x,
             {{ glide:url height="275" width="205" fit="crop_focal" dpr="2" }} 2x"
     alt="{{ alt }}">
>>>>>>> Unanswered <<<<<<<
2 Replies
2 Followers