Search found 19 matches

by valen
2017-06-15T14:13:06-07:00
Forum: Bugs
Topic: Magick::writeImages() creating unstable Photoshop PSD
Replies: 16
Views: 11105

Re: Magick::writeImages() creating unstable Photoshop PSD

I have some PSD files you can test. Can you IM me with your email and I will send them as attachments...
by valen
2017-06-15T13:49:46-07:00
Forum: Developers
Topic: Getting pixels from a grayscale PSD with alpha
Replies: 18
Views: 17885

Re: Getting pixels from a grayscale PSD with alpha

Sorry, I see now in your post that you were demonstrating another problem with ImageMagick reading PSD files. Interesting.

Just for fun, I tried converting my image to DirectClass via "myImage.classType(Magick::ClassType::DirectClass)" but I still got the same bad pixel values.
by valen
2017-06-15T13:43:41-07:00
Forum: Developers
Topic: Getting pixels from a grayscale PSD with alpha
Replies: 18
Views: 17885

Re: Getting pixels from a grayscale PSD with alpha

Thanks for the info. Unfortunately I must stay in C++ for this tool. I can't resort to the command line.
by valen
2017-06-15T12:44:08-07:00
Forum: Developers
Topic: Getting pixels from a grayscale PSD with alpha
Replies: 18
Views: 17885

Re: Getting pixels from a grayscale PSD with alpha

I guess the numbers you are seeing are indexes, not pixel values. Indexes into what? The color map? When I print out the color map, I get a 1:1 relationship between the map index and the associated color values. For example, when I print out the color at index 15, I get RGB values all of 15 and the...
by valen
2017-06-15T11:39:54-07:00
Forum: Developers
Topic: Getting pixels from a grayscale PSD with alpha
Replies: 18
Views: 17885

Re: Getting pixels from a grayscale PSD with alpha

Sorry - the color values I mentioned were part of the 0-255 range.

I checked now and saw that the image is "PseudoClass". Does that mean I have to process it differently that reading the values via getPixels()?

My code example above was just overly simplified to assume a 16x16 image.
by valen
2017-06-15T08:02:54-07:00
Forum: Developers
Topic: Getting pixels from a grayscale PSD with alpha
Replies: 18
Views: 17885

Re: Getting pixels from a grayscale PSD with alpha

Create two Photoshop PSD files. 1) 16x16, grayscale - Fill the image with a solid color (RGB all 50 from color picker) - No alpha channel 2) 16x16, grayscale - Fill the image with a solid color (RGB all 50 from color picker) - Create an alpha channel and fill it with a different solid color (RGB all...
by valen
2017-06-15T07:23:27-07:00
Forum: Developers
Topic: Getting pixels from a grayscale PSD with alpha
Replies: 18
Views: 17885

Re: Getting pixels from a grayscale PSD with alpha

Update: Still no luck. I found online someone talking about the "color map" for palettized images. So I printed out all the values in the images color map ( Magick::Image::colorMap() ) but they all appeared to be generic default values. Nothing special or useful. I still can't find the grayscale pix...
by valen
2017-06-15T07:04:01-07:00
Forum: Bugs
Topic: Magick::writeImages() creating unstable Photoshop PSD
Replies: 16
Views: 11105

Re: Magick::writeImages() creating unstable Photoshop PSD

By "logo:" are you referring to this image? http://www.imagemagick.org/image/logo.jpg I tested my code sample above with that image and I got the same results. It gave me a 3 layer Photoshop PSD file and each layer is locked like a background layer. If I try to unlock them (convert them into non-bac...
by valen
2017-06-08T07:00:35-07:00
Forum: Bugs
Topic: Magick::writeImages() creating unstable Photoshop PSD
Replies: 16
Views: 11105

Re: Magick::writeImages() creating unstable Photoshop PSD

What do you mean by "strip" the layers? The process is pretty simple to test. I could attach files, but it would be almost just as easy to create the images on your end and test them. Just create 2 or 3 JPG images. Then build an executable that runs code like in my original code sample. Then open th...
by valen
2017-06-07T07:04:22-07:00
Forum: Bugs
Topic: Magick::writeImages() creating unstable Photoshop PSD
Replies: 16
Views: 11105

Re: Magick::writeImages() creating unstable Photoshop PSD

Oh, ok. Unfortunately I am unable to do that at my job. But the code example I gave above should be enough for someone with Magick++ and Photoshop experience to test out and confirm.
by valen
2017-06-06T15:02:42-07:00
Forum: Bugs
Topic: Magick::writeImages() creating unstable Photoshop PSD
Replies: 16
Views: 11105

Re: Magick::writeImages() creating unstable Photoshop PSD

I don't see how I can add attachments here. Well, here is an example program. It will take 3 existing JPEG images, and combine them into one 3 layer PSD file. Note that I have recently discovered that the PSD appears to open up OK into Photoshop CC 2017, but not Photoshop CS6. I'm guessing that CC 2...
by valen
2017-06-06T14:11:19-07:00
Forum: Bugs
Topic: Magick::writeImages() creating unstable Photoshop PSD
Replies: 16
Views: 11105

Re: Magick::writeImages() creating unstable Photoshop PSD

I was thinking that the first layer *should* be the flattened layer, but really what does it matter? As long as there is a first layer, followed by more layers. Otherwise, how do we confidently create this first layer? How is it composited? But yes, I should have mentioned in my original post that I...
by valen
2017-06-06T12:39:18-07:00
Forum: Bugs
Topic: Magick::writeImages() creating unstable Photoshop PSD
Replies: 16
Views: 11105

Magick::writeImages() creating unstable Photoshop PSD

ImageMagick++ (7.0.5-7-Q8-x64-dll) Visual Studio 2015 Windows 10 Adobe Photoshop CS6 & CC 2017 I have a similar post in the developer forum, but am leaning more towards the possibility that this is a bug. I am creating a std::list<Magick::Image> of images. Then I use Magick::writeImages() to build a...
by valen
2017-06-03T19:39:46-07:00
Forum: Developers
Topic: How to write multi-layer Photoshop PSD file?
Replies: 7
Views: 12693

Re: How to write multi-layer Photoshop PSD file?

I am not using a command line to do this. I am using the Magick++ API. I am creating a bunch of Magick::Image objects and then writing them to a PSD. The first image in the list of images is considered my "flattened" layer. The following images are the subsequent layers. @snibgo In Photoshop, when y...
by valen
2017-06-03T19:28:14-07:00
Forum: Developers
Topic: Getting pixels from a grayscale PSD with alpha
Replies: 18
Views: 17885

Re: Getting pixels from a grayscale PSD with alpha

Thank you for the replies. So, based on what you've said, I still don't see how I am supposed to read the pixels values from a Photoshop file that is grayscale and contains an alpha channel. Whether or not there are "extra" channels, and whether or not my data is being "palletized", I am still not g...