imgix / js-core

A JavaScript client library for generating image URLs with imgix
https://www.imgix.com
BSD 2-Clause "Simplified" License
123 stars 21 forks source link

Image has distored boarder when used in <meta></meta> tag #179

Closed ChelseaRong closed 4 years ago

ChelseaRong commented 4 years ago

Describe the bug An blended and watermarked image generated using the imgix-core-js looks different from the original image when wrapped in tags and loaded as a preview. the image wrapped has distorted boarders.

To Reproduce Steps to reproduce the behavior:

Other examples:

Screen Shot 2020-10-02 at 8 57 49 AM

IMG_B17400BFF561-1

Information:

heyitsbryanm commented 4 years ago

@ChelseaRong Turns out, the artifact is caused by the q parameter being set at a very low value (q=1). Full breakdown of what's happening:

To fix this, I'd recommend setting the q parameter to at least 25.

I'll close this issue since it isn't an imgix-core-js bug, but if you need further debugging for the imgix rendering API, contact support@imgix.com.