freedomcombination / monorepo

Freedom Combination Monorepo
https://ui.wsvvrijheid.nl
17 stars 7 forks source link

Caps templates #1167

Open 7alip opened 3 months ago

myniqx commented 3 months ago

@7alip i have an idea about this. simple caps editor. it ll have layers and their props that ll be saved as json so easly rebuild by another component named CapsViewer. User easly move objects (which all have their layer) on canvas and add some style like shadow, color, etc. and save them as variant. then at PostEditModal or PostGenAI, user easly select a pre-made variant and observe what ll caps look like. in react side it can be done. but i dont know how og images created in api. if api uses react component that can be done.

i check this (https://vercel.com/docs/functions/og-image-generation) if this is where we create og images, i believe it can be done there too.

7alip commented 3 months ago

@7alip i have an idea about this. simple caps editor.

@myniqx We store image configuration in post.imageParams field. The idea is to generate image based on this params and it works already. We would like to add more templates with svg mask or some other design parts. I added design label to the task, because we need designs for the templates first. It's not ready for development yet.