Generate a path automatically via CLI

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Posts: 1
Joined: 2020-01-30T00:18:10-07:00
Authentication code: 1152

Generate a path automatically via CLI

Post by davidbrok5 »

I'm working out if there is a way to take a (grayscale) .png picture, run an edge detection algorithm on it, generate a list of points (up to here all of this will happen in java) and chuck those points with the original image over to imagemagick, where it will generate a path.

So the result I want is that png file with path information in its metadata. This should be a path in photoshop as well. All of this has to happen on a server, so it would be best if I can write a script I can start via java.

Is that (the imagemagick part obv) even possible? How would I go about this? I only have very passing knowledge of imagemagick so please be gentle :)whatsapp web routerlogin
Last edited by davidbrok5 on 2020-02-04T22:44:42-07:00, edited 1 time in total.

User avatar
Posts: 26261
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Generate a path automatically via CLI

Post by fmw42 »

ImageMagick cannot generate Photoshop paths. It can take a set of points and draw lines on the picture, but they will not be editable. You would have format the list of points into a file or string to feed to imagemagick.

Post Reply