Preserving the mastodon profile photo ratio
-
Dear friends;
Recently I’ve started with my mastodon avatar on https://hessen.social/@peerceval While editing my profile, I’ve got the option to add a square account photo (which will be cropped to 400x400px) and a title image (cropped to the size 1500×500). Then I tried to use your plugin in my developement wordpress instance – which worked very well (better than the current twitter widget, which I still use on my production and which shall be replaced by the content gathered by your plugin). But there is one downside:
In your widget my profile photo is stretched to 16:9 (or similar) ratio. The square photo is not used. I tried a bit by replacing my mastodon profile photo by a 16:9 phote etc. No results: Mastodon reduces the sizes to 400×400.
So here is my question: How can I modify the picture code in the widget so that its aspect ratio is preserved? (As far as I know, it would be sufficient to delete the height size in the img tag.)
Best regards an congratulations for your wonderful work. KR
- The topic ‘Preserving the mastodon profile photo ratio’ is closed to new replies.