Navigation Menu

Skip to content
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

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

Closed
ChelseaRong opened this issue Oct 21, 2020 · 1 comment
Closed

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

ChelseaRong opened this issue Oct 21, 2020 · 1 comment
Assignees
Labels

Comments

@ChelseaRong
Copy link

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:

  • imgix-core-js version: [e.g. 2.3.1]
@heyitsbryanm heyitsbryanm self-assigned this Oct 22, 2020
@heyitsbryanm
Copy link

@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:

  • The parameter q=1&auto=compress is applied, which renders the lowest quality version of the image
    • Since the quality is so low, the compressed, rendered version of the image ends up having artifacts (a large blurred line in this case)
  • The parameter auto=format causes this issue to show only in some browsers/crawlers
    • Since social scrapers don't have a detected user agent that supports WebP, we serve the .jpg version which compresses at a much lower quality compared to WebP
    • This is also why we don't see the issue in a browser that supports WebP (such as Chrome or Firefox)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants