By Philippe on Wednesday, 14 April 2021
Posted in Technical Issues
Likes 0
Views 803
Votes 0
Hello Arlex,

I detected another small problem.
This concerns AMP images generated by EasyBlog.

For example if original image is 1920 x 1280 pixels :

If the image sent is in vertical portrait format, the final AMP image will be 1200 x 1800 pixels.
Instead of 800 x 1200 pixels.

In comparison, if I send an image in horizontal landscape format, he AMP image will have the dimensions 1200 x 800 pixels.

Sample image in attachments.

Thank you,
Philippe
For the AMP minimum requirement, the image size should be at least 1200 pixels wide. (you can refer this link https://developers.google.com/search/docs/data-types/article )

So we must resize the image width to 1200 regardless that is a vertical or horizontal image.

This is the current calculation for horizontal and vertical image :

1. Image 1920x1280px
- 1200 / 1920 = 0.625 ratio
- 1280 x 0.625 = 800 height
- Resize to 1200x800px

2. Image 1280x1920px
- 1200 / 1280 = 0.9375 ratio
- 1920 x 0.9375 = 1800 height
- Resize to 1200x1800px
·
Wednesday, 14 April 2021 12:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Arlex,

Ok I see
It's very clear.

Thank you very much Arlex for taking the time to give me such a detailed answer.

Philippe
·
Thursday, 15 April 2021 05:11
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Thursday, 15 April 2021 10:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post