23
submitted 9 months ago by Father_Redbeard@lemmy.ml to c/foss@beehaw.org

I know this might be a bit too specific, but I'll ask anyway.

Is there any FOSS app for Android that supports tracing photos that can export the trace to SVG? I suppose this means it would have to support layers, and also support the ability to export individual layers instead of the whole project as SVG.

The intent is to use my Galaxy Tab with S-pen to trace objects in a photo in order create an SVG I can import into an app like Carbide Create (not FOSS either, but it's all I know how to sorta use at the moment) for cutting on a CNC. An example is a photo of one of my chickens. I wanted to turn this photo into a silhouette of said chicken and be able to cut that on a plank of wood. I did try Inkscape, but due to the background elements it would not pick up just the chicken during the "Trace Bitmap" operation. And honestly seems like a shame to not be able to use the S-pen for this type of project.

I run Linux on my home PC and I'm not sure if it will support using the tablet like a drawing tablet (Wacom type) like Windows can, but I suppose that is an option.

I looked at Infinite Design (not FOSS) but could not seem to find a free trace tool. There is a "pen" tool, but it wants to constrain it to a line and then you sorta pull the curves out of it. I apologize, I'm not really sure what all of the terms are.

I also looked at Excalidraw, which while being web app, runs reasonably well on Android. But some of the functions either don't work at all or I'm doing something wrong. I was able to import a photo and trace it, but couldn't find a way to export just the trace outline.

all 12 comments
sorted by: hot top controversial new old
[-] IrritableOcelot@beehaw.org 7 points 9 months ago

If you're OK with using inkscape and GIMP, if the background color is different than the chicken, you could apply a color filter to simplify the image to "chicken" and "not chicken" (basically, reduce the number of total colors to 16 or less), then use inkscape Trace Bitmap in Colors mode.

Tracing a bitmap to an SVG is really only practical if it's a line drawing or if it has less than 16 (preferably less than 8) colors, because each color becomes a different vector object. Its really not intended for full on photos, unfortunately.

[-] Father_Redbeard@lemmy.ml 3 points 9 months ago

That makes sense, I'll have to try that. It would be a silhouette of said chicken. Thanks!

[-] eco_game@discuss.tchncs.de 3 points 9 months ago

If you're ok with using your tablet as a drawing tablet with your PC, I use an app called Virtual Tablet for that. Sadly it appears to be Windows and MacOS only, but a quick search led to Weylus. I have no idea how well this works and never tried it, but from the readme it sounds pretty good.

[-] Father_Redbeard@lemmy.ml 2 points 9 months ago

That looks promising! Thank you.

[-] survivalmachine@beehaw.org 2 points 9 months ago

I also looked at Excalidraw, which while being web app, runs reasonably well on Android. But some of the functions either don't work at all or I'm doing something wrong. I was able to import a photo and trace it, but couldn't find a way to export just the trace outline.

After you trace the photo, can't you delete the photo from the canvas and just save as SVG? Won't it save just the trace if that's all there is?

[-] Father_Redbeard@lemmy.ml 1 points 9 months ago* (last edited 9 months ago)

See? This is why I asked. I figured if nothing else, someone would have a better idea than what I've been trying! That totally works! I'll have to try it more to see if it can do what I want. Thanks!

EDIT: yep, this idea works!

[-] makingStuffForFun@lemmy.ml 1 points 9 months ago

Inkscape has a bmp to vector tool. It's quite good too. Depending on input of course.

[-] darkphotonstudio@beehaw.org 1 points 9 months ago

Just manually trace it using your mouse. It'll take like 5 minutes, at most.

[-] Father_Redbeard@lemmy.ml 2 points 9 months ago

I suppose you're right. But I've got this neat tablet here and I wanna use it! That and I want to do this on multiple projects, not just this example.

this post was submitted on 07 Mar 2024
23 points (100.0% liked)

Free and Open Source Software

18020 readers
160 users here now

If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS