Selection conversion to shape; anchor simplification/reduction is needed.

What features would you like to see in Pixelmator Pro?
User avatar

2024-03-29 16:10:33

I have mentioned this before, but can't seem to find it now. There needs to be a way to reduce anchor points on selections. Something a bit smarter is needed; the manual repairs/simplifications are quite tedious. Image
User avatar

2024-03-31 22:15:01

+1 on this

Here is a similar ask from a while ago:
viewtopic.php?t=20026&hilit=Convert+to+shape
User avatar

2024-04-01 01:40:59

Thanks, ShaTy, I knew it was there but couldn't find it today. I want to keep it in the team's mind.

Chat GPT helped a bit, but I can' do it.

You
I have a pixel alpha character, for example a zero, that has dozens and dozens of anchor points as a result of converting to a vector shape. I need some kind of pseudocode to reduce/minimize the number of anchor points for the vector.

ChatGPT
To reduce the number of anchor points in a vector shape, you can use a simplification algorithm that iteratively removes unnecessary points while preserving the overall shape of the vector. Here's a pseudocode example of how you might approach this task:

Image
Here's an example of how this pseudocode might look in Python code:
Image
In this code:
Image