riccardoperra / codeimage

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

🚀 - Resizing the code image #531

Closed saiidhanna21 closed 1 year ago

saiidhanna21 commented 1 year ago

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

No response

Description

Add a width and height to change the width and height of the final result

riccardoperra commented 1 year ago

Hi @saiidhanna21, what's the use case of this request? Changing the width and the height of the final result may generate inconsistencies between the exported image and the visible canvas

saiidhanna21 commented 1 year ago

@riccardoperra, there's lot of dead space between the code and the code canvas that can be reduced for better visibility

riccardoperra commented 1 year ago

Ah ok. Something like this has already be done. With the next release you will be able to update the width based on your code length 😄

image
saiidhanna21 commented 1 year ago

Excellent 😎❤

riccardoperra commented 1 year ago

Live with 1.4.0