t3dotgg / quickpic

Turn SVGs into high resolution PNGs in 2 clicks. Built because Theo was mad.
https://quickpic.t3.gg
MIT License
920 stars 184 forks source link

Add flexible SVG scaling options -- with video overview/demo #16

Closed TheLDB closed 1 week ago

TheLDB commented 2 weeks ago

Hello!

My PR adds the ability to scale an svg both on the x/y axes at the same time, and independently. So you could scale an image either 50x, or set a custom x and y value for the PNG. Additionally I learned that in Chrome, the max pixels on a canvas is 268,435,456 source, so I added a quick warning if you exceed that, this can be easily removed if wanted though.

I created a quick video going over and demonstrating the changes, and the quick code changes I made.

Thanks!

https://github.com/user-attachments/assets/5fbe47d9-8970-4878-9c86-ceb40a618684

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quickpic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 6:00pm
TheLDB commented 2 weeks ago

solved merge conflicts

TheLDB commented 1 week ago

closing -- #62 implemented custom scale