Hello @zotezo,
Thank you for contacting us.
If you’re using the native HTML image tag, the amp-img component shouldn’t impact the image size.
WordPress will serve full-sized images if:
- The actual image is smaller than the specified dimensions.
- No image size is defined.
- The image was uploaded before specifying image sizes.
In these cases, image variations won’t be generated. You can regenerate images using Regenerate Thumbnails
plugins.
Please let us know if you have any other questions.
Thread Starter
zo
(@zotezo)
We’re trying to change the icon size of “amp-social-share” custom icon but always getting default 60px 44px. here is what we tried
<amp-social-share type="system" class="amp-share-icon" width:"118" height:"28" aria-label="Social Share"></amp-social-share>
Please guide
Hello @zotezo
You are using width:118 and height:28 which are not valid attribute, please use width="118" and height="28" please refer to official documentation of amp-social-share for more details on custom styling.
Additionally please note that the system type share only appear on chrome browsers on mobile devices.
Thread Starter
zo
(@zotezo)
We are facing issues currently Image size smaller than recommended size
https://www.zotezo.com/uk/top/best-cranberry-supplements-in-uk/?amp
<span style=”color: rgba(0, 0, 0, 0.87); font-family: Roboto, RobotoDraft, Helvetica, Arial, sans-serif; font-size: 13px; white-space-collapse: collapse;”>https://www.zotezo.com/ca/top/best-dark-chocolate-in-canada/?amp</span>
But cannot identified which images are causing this issue. Can you please let me know?
Thanks
You may be seeing a warning and not the error message, the structured data (schema) of AMP recommends a minimum image with a width of 1200px.
Primarily the featured image of your post is used in structured data, you will also notice the suggestion notice for the image size (screenshot)
Your structured data is generated by your SEO plugins such as Yoast SEO plugin.
We recommend re-uploading images for posts with the suggested size (images with minimum 1200 width) or contacting your SEO plugin support.
We hope this helps!
@zotezo As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.