amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Give option to modify background filter in AMP Stories

Open ghelapratik opened this issue 8 years ago • 3 comments

At the moment, we have applied filters to the background image in an AMP Story page. But, as AMP Story CSS by default applies the blur(50px) filter to the BG image, it doesn't copy the filters applied to the background image in AMP Layer. Due to this, the BG blur & Image in the front do not go with each other and look out of sync. A great thing to do will be to give an option to extend the filters or customize them.

screen shot 2018-09-04 at 3 58 14 pm

ghelapratik avatar Sep 04 '18 10:09 ghelapratik

Good point, and we should fix this. I don't think we'd allow customizing the filters of the background asset, but we should copy over the ones you've set on the asset in the amp-story-page.

You'll almost certainly get better performance if you can bake these filters into the assets, though. Is that something that would be possible on your end?

newmuis avatar Sep 04 '18 11:09 newmuis

The better option will be the one you initially suggested. We are generating these filters on runtime and applying them to images and saving / resaving them will be resource & performance intensive. Best thing will be to capture the filters and apply to BG.

ghelapratik avatar Sep 05 '18 06:09 ghelapratik

We've found that CSS filters are too slow, so I don't think we'll be providing this. The automated background image is also no longer applied.

newmuis avatar May 13 '19 16:05 newmuis