Search found 50 matches

by i73
2017-07-06T19:04:01-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Darn, I was really hoping I could get away with not passing more arguments, but It's looking like I have to pass in '-Depth 1' for my mask and 'PNG32' for my 32 bit image instead of relying on 'PNG00'.
by i73
2017-07-06T17:47:06-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Thank you so much guys, hopefully we can figure out whats going on.

EDIT:
I'm also seeing it's converting 1 bit to 8 bit now:

Image
by i73
2017-07-06T17:11:22-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

"Why does it matter that your Windows tool is saying they are different? Does it affect your further processing in any way?" Yes, because I am trying to import the resized image back into a service (A bitmap service that we wrote) that will not allow me to import a 8 bit indexed image bac...
by i73
2017-07-06T15:32:38-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

I don't understand what problem you are trying to solve. You have linked to two files. Exiftool says they are both palette files. So what? You have shown two screnshots. From what software? Relating to what files? They say one file is "Bit depth 32" whatever that means, the other is "...
by i73
2017-07-06T13:38:58-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Should I open a new question for this? If you run my code on your image and look at the actual bit depth you'll see it's been changed to 8.
by i73
2017-07-06T10:55:03-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

So, I'm getting the exact same output when I preform -verbose but in both the properties and in my code it's been changed from 32 bit to 8 bit:

Image
by i73
2017-07-06T10:39:44-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

I'm not able to, it's already packaged and distributed, would this be the issue I am having with the PNG00? Are you getting the same issue with your convert?

Code: Select all

convert C:/test_512x512_32.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 PNG00:C:/test2_128x128.png
by i73
2017-07-06T10:14:46-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

You can use "-type" to prevent paletisation. But I would have to pass a type to my method, correct? I'm trying to stay away from passing arguments other than size and image name. You can find the images here: https://ibb.co/gurNQF https://ibb.co/eSaGkF Image: D:\z\TestLayer.png Format: PN...
by i73
2017-07-05T19:45:22-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Sorry, I understand the syntax for any of the flags so I did not think it would matter what versions or platform I am using. convert C:/test_512x512_32.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 PNG00:C:/test2_128x128.png Yes I am converting a larger image to a smaller one, when I export, after doing...
by i73
2017-07-05T19:16:20-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

I spoke a little too soon @fmw42, "It works" But not for 32 bit images, when I resize a 32 it drops the depth down to 8 bit (because its dropping the channels with the resize). Do you know if there is another flag, or a flag that would extend to 32 bit? I was hoping that I could get away w...
by i73
2017-07-05T11:05:33-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

What is your IM version? C:/test.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 png32:C:/test2.png This is not a valid command. If on IM 6, then it needs convert at the beginning. If on IM 7 it needs magick at the beginning. If you just specify PNG00:, then I believe it should not try to change your dep...
by i73
2017-07-04T16:40:22-07:00
Forum: Users
Topic: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?
Replies: 38
Views: 34844

When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

I'm currently resizing images and I ran into a problem of ImageMagic applying it's own bit depth (Not taking into account of the depth of image) so now I am using 'png32': $ C:/test.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 png32:C:/test2.png Ideally I am looking to just read the images depth from t...
by i73
2017-06-07T16:28:58-07:00
Forum: Magick++
Topic: Converting to -colorspace gray changes color values?
Replies: 8
Views: 23815

Re: Converting to -colorspace gray changes color values?

Thanks guys, yeah they are pretty much identical, literally the smallest differences.
by i73
2017-06-07T13:49:07-07:00
Forum: Magick++
Topic: Converting to -colorspace gray changes color values?
Replies: 8
Views: 23815

Re: Converting to -colorspace gray changes color values?

No problem, can I output with dotgain? I know these images look almost identical but when you toggle through them in Photoshop you can notice the difference. It's not a huge deal at this point but just wondering if I can get the identical output. Photoshop output: http://i.imgur.com/fpdTHWc.png The ...
by i73
2017-06-07T13:23:09-07:00
Forum: Magick++
Topic: Converting to -colorspace gray changes color values?
Replies: 8
Views: 23815

Re: Converting to -colorspace gray changes color values?

What version IM are you using? If fairly recent (since about v6.7.5), don't put "-set colorspace RGB". That says the image is linear RGB, which it probably isn't. Using: Magic.net 6.8.7 Removing colorcolorspace fixed it a little but I am still getting a little bit lighter of a image, do I...