Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
648 views
in Plugins by
Why? Well, Facebook. If ones share a question in Facebook it looks a bit ugly unless ones add a picture to it. i was thinking we could generate a facebook complying image (200x200px I think) via php (combining it with maybe a selected background) to show when there are no pictures in the post.
Q2A version: 1.7
by
Sounds good @Alvaro A Fernandez.  I have not used this plugin yet, but it could ask for default image, which defaults in turn to logo.
by
Looks like you're basically looking for this: http://question2answer.org/qa/45630?show=45652#a45652 . However, I'm not quite sure what you mean by "auto-generate".
by
Thanks Pupi, I check that out :). By auto-generate I mean something like this http://php.net/manual/en/function.imagettftext.php to put some text to the image (so it becomes unique). I was thinking it might draw attention (yet, well, it might not be worth it).
by
Purpose is different. But, my plugin might be close to your hopes. This plugin is rendering string with imagettftext. However, the drawing of the variable string is difficult.
http://www.question2answer.org/qa/44415

1 Answer

0 votes
by
edited by

what kind of image ? Editing css , you can get a background and use crazy fonts. Is it not enough ?

IMHO, your request reveals an issue of substance : don't give anything else than a good content, as true as possible. Your work is to distinguish scalable and permanent knowledges to maintain a nice site, nice by its contents. Or open a blog and connect it to the facebook and other likes :)

ps : for the facebook default image n just add the meta

<meta property='og:image' content='IMAGE URL' />

in the header using the admin page /admin/layout , where IMAGE URL is the image URL.

by
Hi, thanks for your answer. I'm looking for a custom image to put in

<meta property='og:image' content='CUSTOM DEFAULT IMAGE HERE' />

I was thinking having the Question in the image would be good, but any default image (different that the logo) would be an improvement. the image doesn't need to be visible in the actual question page. It's just there for sharing
...