lucid-fox / social-magick

An Open Graph Image generator plugin for Joomla 3 and 4
GNU General Public License v3.0
15 stars 1 forks source link

Create default templates and install them with the plugin #3

Closed nikosdion closed 3 years ago

nikosdion commented 3 years ago

Joomla does not allow realistically shipping defaults for repeatable fields. However, that's not a big issue — just a nuisance.

We need to create two default templates:

Once we set them up manually we can take the generated JSON from the database and apply it with our post-installation's script on fresh installations (and only then; we don't want to overwrite people's templates!).

This consistency will allow us to easily document the plugin. Assigning to @crystalenka for the image assets and templates setup. When done please assign to @nikosdion for the implementation of the post-installation script.

crystalenka commented 3 years ago

overlay Template name: 'overlay' Width: 1200 Height: 640 Text color: #ffffff Textbox width: 500 Textbox height: 270 Position from y center: yes Y adjustment: -55 Position from x center: yes X adjustment: 0 Extra image: Yes, background, full cover

solid Template name: 'solid' Width: 1200 Height: 640 Text color: #ffffff Textbox width: 600 Textbox height: 280 Position from y center: yes Y adjustment: 0 Position from x center: yes X adjustment: 0 Extra image: No

Font selection and size doesn't really matter. Maybe 48 pt font, Open sans bold?

crystalenka commented 3 years ago

One more, which shows how you can get creative:

cutout Template name: 'cutout' Width: 1200 Height: 640 Text color: #ffffff Textbox width: 430 Textbox height: 415 Position from y center: yes Y adjustment: -20 Position from x center: No X adjustment: 165 Extra image: Yes, background Extra image width: 420 Extra image height: 420 Img y position: 90 Img x position: 660