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?".
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-25T19:25:45-07:00
I use the same command and not works this could be a error of versions ??
Code: Select all
convert kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-25T19:27:22-07:00
fmw42 wrote: ↑ 2017-03-25T19:22:32-07:00
Still not correct. See my listing above. Note that the type is grayscale and not binary. Also see all the graylevels in the histogram. Morphology works primarily on binary images. So you need to threshold this image.
I use the same command that you tell me but not works I use the image that you posted
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-25T19:28:37-07:00
No, I doubt that.
Are you using the image you posted by downloading it from this web site or the image before you uploaded it. Some hosting services change the image format to always post JPG versions.
Are you running this in a bat file? If so you need to change % to %%.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-25T19:29:23-07:00
I only posted my result. You need to use the image that you posted by downloading it again from your post.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-25T19:30:22-07:00
What is your IM version and platform? We keep asking you to always post that information.
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-25T19:33:16-07:00
I use this version Version: ImageMagick 7.0.4-9 Q16 x86_64 2017-02-20
http://www.imagemagick.org
I will try to downgrade to your version
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-25T19:34:02-07:00
No do not do that. Let me check with IM 7 where you have to use magick rather than convert.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-25T19:35:19-07:00
There is a bug. IM 7.0.5.4 does not do this correctly using:
Code: Select all
magick kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
I will report it.
This is why it is IMPORTANT that you always provide your IM version and platform!
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-25T19:37:09-07:00
I use this two commands and nothing
Code: Select all
magick kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
Code: Select all
magick kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
maybe couldbe problems with the version of problems whit the OS
I dont know
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-25T19:39:19-07:00
You did not threshold it as I said above. It is not binary input when you use jpg.
But as I said above IM 7 has a bug in this command. So it will not work in IM 7
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-25T19:40:44-07:00
I use this
magick kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
convert kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
and this
magick kLdPK.jpg -morphology Thinning:-1 Skeleton skeleton.gif
convert kLdPK.jpg -morphology Thinning:-1 Skeleton skeleton.gif
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-25T19:41:22-07:00
OK I will try to downgrade
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-25T19:45:15-07:00
try
Code: Select all
magick convert kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
If that does not work, then you will need to use IM 6 for this.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-25T19:45:37-07:00
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-25T19:46:56-07:00
not works I will change the version thanks