Skip to content

Conversation

@runyasak
Copy link
Contributor

Overview

I added bitmap to SVG conversion feature for allowing users to convert simple images into 3D models.
This feature uses Potrace for bitmap tracing and adds a clean, rounded background to the resulting SVG.

Scope of work

  • added bitmap to SVG conversion using Potrace
  • added support for image file uploads (PNG, JPEG, WebP)
  • added rounded background with padding to traced SVGs
  • updated UI text and file input accept types

Screenshots

Untitled2.mov

Limitations

  • currently works best with simple images (logos, icons, line art)
  • complex images or photos may not trace properly due to Potrace's limitations
  • recommended to use images with clear contrast and simple shapes

If you'd like me to update or fix anything, please let me know.
I'm happy to update my code following your feedback.

@netlify
Copy link

netlify bot commented May 11, 2025

Deploy Preview for bekuto3d ready!

Name Link
🔨 Latest commit 05517d7
🔍 Latest deploy log https://app.netlify.com/sites/bekuto3d/deploys/682368e52f02c900092ce2d0
😎 Deploy Preview https://deploy-preview-9--bekuto3d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@runyasak runyasak changed the title feat: upport bitmap feat: support bitmap May 13, 2025
Copy link
Owner

@LittleSound LittleSound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great feature. So let's merge it.

There are currently a few issues that we hope can be resolved in the future.

  • Does not support multiple colors

  • The inner edges of hollow shapes are missing, a phenomenon usually referred to as non-manifold edges, which are structures that cannot be 3D printed.

  • Cannot remove the added background, the background should be optional.

CleanShot 2025-05-13 at 23 36 09

@LittleSound LittleSound merged commit e1a327a into LittleSound:main May 13, 2025
4 of 6 checks passed
@runyasak runyasak deleted the feat/bitmap branch May 13, 2025 15:46
@runyasak
Copy link
Contributor Author

@LittleSound Thank you so much.

There are currently a few issues that we hope can be resolved in the future.

I appreciate your feedback. I’ll take more improve this feature to make it works.
Feel free to share any suggestions or ideas you may have — I’d love to hear them.

Thanks again, and I’ll do my best for the next PR. 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants