I know this is stretching a bit, but it is possible to automatically format og:image images in the style required by opengraph - i.e. at least 50x50px and an aspect ratio no greater than 3:1. I have coded auto opengraph to do this. The part of my code that creates the image style and actions is at the very bottom of the module code and I invite you to steal it. I have hacked something together to work around the fact that tokens can't yet distinguish between image formats (see around line 230) but I'm hoping for more token support instead.

Comments

dnotes’s picture

Component: Open Graph » Code
StatusFileSize
new527 bytes

I'm not getting this error locally (possibly because of my php version) but could you try this patch out and see if it fixes things. If not I'll do it sometime soon on a php 5.3 server.

EDIT: sorry this was for a different issue.

dave reid’s picture

Component: Code » Open Graph
SilviuChingaru’s picture

Version: » 7.x-1.x-dev
Component: Code » Open Graph

I'm trying to figure out a way for this feature too...

+1

SilviuChingaru’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, errors_on_admin_pages-1313552-1.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Active

Maybe by adding a custom style specification that matches the requirement, and providing documentation that shows how to use it?

saturnino’s picture

You can use ImageCache Token : http://drupal.org/project/imagecache_token
worked for me.

mototribe’s picture

thanks, imagecache_token worked for me too

damienmckenna’s picture

Component: Open Graph » Documentation
Category: feature » task

Lets turn this into a documentation task to recommend imagecache_token for customizing the images.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

This adds a note to the README.txt file that suggests using Imagecache Token.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

damienmckenna’s picture

Status: Fixed » Closed (fixed)

Now that Metatag v7.x-1.0-beta5 is out am closing this to keep the issue queue clean.