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?".
When exporting Grayscale pngs (Save to web) It still contains color data, Artists have to be in Grayscale mode in Photoshop in order for them to export actual Grayscale:
I'm wondering if I am able to remove the color data with ImageMagick?
It's not clear to me why you are including -set colorspace RGB, which is normally used when you need to change an incorrect colorspace designation on an image.
If your image is nonlinear (sRGB as most PNGs are) then it should be marked as such already by IM when it is read in. The -colorspace operation is intended to operate on the correct current colorspace, so if you have changed it to something that no longer correctly represents the data, then the resulting grayscale will not be what is normally expected from -colorspace gray.
-Dabrosny [Using IM7.0.6 or higher, Q16 HDRI x64 native executable, command line, often invoked from cygwin bash/sh (as of Aug. 2017)]