Automattic / Automattic/jetpack

Latest Instagram Posts: Images not cropped in AMP

Open
#15,979 0 comments 0 reactions 0 assignees View on GitHub
[Block] Latest Instagram Posts [Focus] Blocks [Pri] Low AMP Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue

1. Insert the Latest Instagram Posts block, and connect it to an Instagram user.
2. Preview the post in AMP.

#### What I expected

To see a gallery of square images.

#### What happened instead

The images aren't cropped to square, but keep their original ratio.

**Screenshots**

![image](https://user-images.githubusercontent.com/2070010/83180292-211da000-a11b-11ea-96c5-56c0660d42ea.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by inserting the Latest Instagram Posts block, connecting it to an Instagram user, and previewing the post in AMP. Trace the block's AMP image rendering from that entry point; done means the images display as a square gallery rather than retaining their original ratio.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.