riccardoperra / codeimage

A tool to beautify your code screenshots. Built with SolidJS and Fastify.
https://codeimage.dev
MIT License
1.35k stars 74 forks source link

🚀 - Export with rounded corners #547

Closed Desoroxxx closed 1 year ago

Desoroxxx commented 1 year ago

Which @codeimage/* package(s) are relevant/releated to the feature request?

codeimage

Description

When displaying on the code image website the corners are rounded which is nice, but the actual exported png does not have rounded corners.

It would be very nice to have an option for exporting with rounded corners.

riccardoperra commented 1 year ago

Hi, do you have an use case for that?

Desoroxxx commented 1 year ago

Hi, do you have an use case for that?

Yeah actually, GitHub does not round images and in my changelogs I feel like the square corners looks a bit harsh compared to the rounded window

riccardoperra commented 1 year ago

Working on this, there will be a new option to select the current radius of the frame

image

New snippets will always be exported with the default radius (8px), to remove the border you will have to put the radius to "0". What do you think?

Desoroxxx commented 1 year ago

Working on this, there will be a new option to select the current radius of the frame

image

New snippets will always be exported with the default radius (8px), to remove the border you will have to put the radius to "0". What do you think?

I think that's great, does it visually show in the editor?

riccardoperra commented 1 year ago

Working on this, there will be a new option to select the current radius of the frame image New snippets will always be exported with the default radius (8px), to remove the border you will have to put the radius to "0". What do you think?

I think that's great, does it visually show in the editor?

Yes

riccardoperra commented 1 year ago

@Desoroxxx https://codeimage-app-pr-553.vercel.app/ a public preview is available here..if everything is ok I will deploy it in the next few days

Desoroxxx commented 1 year ago

Just tested seems to work perfectly

riccardoperra commented 1 year ago

Released with 1.4.2