Search found 8 matches

by PRAGMA
2019-11-21T10:51:35-07:00
Forum: Users
Topic: libpng error: IDAT: incorrect data check - How can I find the culprit image?
Replies: 2
Views: 2913

Re: libpng error: IDAT: incorrect data check - How can I find the culprit image?

Some more information might help. What version of IM? On what platform? What was your command? What was the result (including error messages)? Perhaps you are reading multiple inputs, and get an error message, but don't know what input caused it. If so, then running that command on each input separ...
by PRAGMA
2019-11-21T09:56:47-07:00
Forum: Users
Topic: libpng error: IDAT: incorrect data check - How can I find the culprit image?
Replies: 2
Views: 2913

libpng error: IDAT: incorrect data check - How can I find the culprit image?

Is it possible to do a check for that perhaps via verbose with identify and doing a string contains check?
by PRAGMA
2019-11-16T05:42:54-07:00
Forum: Users
Topic: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?
Replies: 7
Views: 4816

Re: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?

fmw42 wrote:
2019-11-15T17:38:32-07:00
For IM 7 use magick, not magick convert. The latter will give IM 6 behavior
What about `mogrify`?
My script uses mogrify instead of `convert` or `magick convert` to overwrite existing file instead of to a new file.
I cant get any trick listed here to work via mogrify
by PRAGMA
2019-11-15T15:41:50-07:00
Forum: Users
Topic: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?
Replies: 7
Views: 4816

Re: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?

fmw42 wrote:
2019-11-15T15:38:37-07:00
use -define colorspace:auto-grayscale=off

Also -resize will introduce new colors other than your black and white due to resampling. So if that is an issue, then use -filter point -resize or -sample in place of -resize.
With a quick test this didn't seem to work:
Image
by PRAGMA
2019-11-15T15:18:38-07:00
Forum: Users
Topic: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?
Replies: 7
Views: 4816

convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?

I have a folder of images, I need to use -chop and -resize on them, when I do, if the entire image is 2c and is black and white only, when I use `convert` it converts the colorspace to `Gray`. Can I prevent that and keep the original colorspace which is sRGB? I need the images to physically be forma...
by PRAGMA
2019-06-22T07:26:52-07:00
Forum: Users
Topic: Find images that are not sRGB (Black/White/Colorless)
Replies: 1
Views: 3411

Find images that are not sRGB (Black/White/Colorless)

I have a folder of like 400k images and I need to find any image that is just black/white or just black or just white or its color profile isnt sRGB. Currently I do this via -identify and just .contains check it, but it takes ages, it does 5k images within a couple hours, its fairly slow, surely the...