Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Show blurredPlaceholders warning only when enabled #1151

Merged

Conversation

att55
Copy link
Contributor

@att55 att55 commented Feb 28, 2021

Overview

Hi there!

I found that the warning of blurredPlaceholders was shown even if blurredPlaceholders option was disabled.
https://github.com/ampproject/amp-toolbox/tree/main/packages/optimizer#blurry-image-placeholders

AMP Optimizer AddBlurryImagePlaceholders WARNING jimp and lru-cache need to be installed via `npm install jimp lru-cache` for this transformer to work

I don't think there is a need to show the waring when the option is disabled.
So, I change that the waring is shown only when the option is enabled.

@CLAassistant
Copy link

CLAassistant commented Feb 28, 2021

CLA assistant check
All committers have signed the CLA.

@att55 att55 changed the title Hide blurredPlaceholders warning when disabled Show blurredPlaceholders warning only when enabled Feb 28, 2021
Copy link
Collaborator

@sebastianbenz sebastianbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one! Thanks for fixing!

@sebastianbenz sebastianbenz merged commit e20e975 into ampproject:main Mar 1, 2021
@att55 att55 deleted the hide-blurred-placeholders-warning branch March 2, 2021 01:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants