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?".

I'm trying to create a Photoshop file: 16 bit, RGB, no alpha channel and just a single transparent layer, but no success.
I've tried a lot of cli settings/options and lately I tried to use a template file (a transparent png file with all the requirements above) and if I resize it and save it as a psd file I'll end up with a grayscale psd file with a black background.
Since I'm just resizing the image I would expect to the operation leaves all the other aspect of the image (channels, transparency, etc) intact but unfortunately it doesn't.

So, my question is, what is the best way to create an empty psd file described above?

prevent automatic conversion to grayscale inside coders that support grayscale. This should be accompanied by -type truecolor. PNG and TIF do not need this define. With PNG, just use PNG24:image. With TIF, just use -type truecolor. JPG and PSD will need this define.

As a matter of fact, only the first worked fine (but gave me a grayscale image with a black background and an alpha).
The last one didn't work at all but that's probably because of the old version I'm using.
The rest worked but the generated psd files were invalid, at least CS 2014 wasn't able to open them (the file size is suspiciously small compared to the others, for example the first generated a file ~500 kB, these files around ~60 kB).

The -define set properties on an internal object called ImageInfo. But the method that makes the image gray only has an Image as input and not an ImageInfo. To set a property on the image itself you will need to use -set instead of -define.

The -define set properties on an internal object called ImageInfo. But the method that makes the image gray only has an Image as input and not an ImageInfo. To set a property on the image itself you will need to use -set instead of -define.

But -define has worked before on other images. Why is this different? Is it because it has transparency?

prevent automatic conversion to grayscale inside coders that support grayscale. This should be accompanied by -type truecolor. PNG and TIF do not need this define. With PNG, just use PNG24:image. With TIF, just use -type truecolor. JPG and PSD will need this define.

So according to this, if I want to make a gray JPG or PSD, but have it report colorspace sRGB, then I should do the following. These both work according to identify -verbose, but %[colorspace] is in error.

I've tried this one but it gave me a grayscale image with a transparent layer and an alpha channel.
Then I've changed the command by adding "-type truecolor" (because I need an RGB image) and I got a grayscale image with a background layer and without alpha.

It feels like completely unpredictable when it comes to psd files...

All I wanted is a 16 bit, RGB image with single, transparent layer and no alpha channel.
Seems impossible now.