Search found 111 matches

by Dabrosny
2017-09-12T11:50:23-07:00
Forum: Bugs
Topic: documentation bugs: color-management.php says IM treats all gray images as linear
Replies: 7
Views: 1765

Re: documentation bugs: color-management.php says IM treats all gray images as linear

Most image processing algorithms require a linear colorspace for optimal results. Only when an image is displayed to a monitor or printer does it make sense to utilize gamma. So the ideal workflow would be to store your image in a linear colorspace, Good discussion! Absolutely, let's store it as li...
by Dabrosny
2017-09-12T10:43:21-07:00
Forum: Bugs
Topic: documentation bugs: color-management.php says IM treats all gray images as linear
Replies: 7
Views: 1765

Re: documentation bugs: color-management.php says IM treats all gray images as linear

However, as mentioned, pushing the pixels to an image format is problematic since most formats do not have sufficient metadata to decide if the grayscale is linear or non-linear (excepting MIFF and MPC). It shouldn't be any more problematic for Gray (*Luma vs *Luminance intensity) than it is for co...
by Dabrosny
2017-09-12T09:42:46-07:00
Forum: Bugs
Topic: documentation bugs: color-management.php says IM treats all gray images as linear
Replies: 7
Views: 1765

Re: documentation bugs: color-management.php says IM treats all gray images as linear

"-colorspace Gray" seems to create a nonlinear grayscale (in fact same as -grayscale rec709luma) by default in IM7. Under what circumstances is gray assumed linear? In fact I've documented what I've observed to be the behavior of grayscale images with respect to "-intensity" as a proposed update to...
by Dabrosny
2017-09-12T08:49:51-07:00
Forum: Bugs
Topic: documentation bugs: color-management.php says IM treats all gray images as linear
Replies: 7
Views: 1765

Re: documentation bugs: color-management.php says IM treats all gray images as linear

The documentation is right. Gray is assumed linear. Likely a bug. We are investigating a fix to the problem and documentation now. "-colorspace Gray" seems to create a nonlinear grayscale (in fact same as -grayscale rec709luma) by default in IM7. Under what circumstances is gray assumed linear?
by Dabrosny
2017-09-12T08:06:10-07:00
Forum: Bugs
Topic: documentation bugs: color-management.php says IM treats all gray images as linear
Replies: 7
Views: 1765

documentation bugs: color-management.php says IM treats all gray images as linear

The document www.imagemagick.org/script/color-management.php still states that IM "treats any grayscale image as linear rather than non-linear", which may have been true at one time, but not in IM7 (nor in late versions of IM6 I believe). Much of the rest of that html page seems based on this obsole...
by Dabrosny
2017-09-11T09:56:42-07:00
Forum: Bugs
Topic: -grayscale *luminance gives DARK result if global -intensity *luma or +intensity was EVER explicitly set earlier
Replies: 0
Views: 1957

-grayscale *luminance gives DARK result if global -intensity *luma or +intensity was EVER explicitly set earlier

After setting -intensity rec709luma or rec601luma (or even after "-intensity Undefined" or "+intensity", strangely), any later -grayscale rec709luminance or rec601luminance calculates linear gray data as expected, but uses the method from the earlier -intensity setting as the intensity image attribu...
by Dabrosny
2017-09-11T05:46:06-07:00
Forum: Users
Topic: Removing all color data from grayscale png's?
Replies: 2
Views: 693

Re: Removing all color data from grayscale png's?

convert D:\myGrayscaleImage.png -set colorspace RGB -colorspace gray D:\myNewGrayscaleImage.png 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 PN...
by Dabrosny
2017-09-10T19:48:17-07:00
Forum: Bugs
Topic: Result of -grayscale (or -colorspace gray) with a linear intensity becomes DARK if saved as JPEG (at least)
Replies: 5
Views: 2050

Re: Result of -grayscale (or -colorspace gray) with a linear intensity becomes DARK if saved as JPEG (at least)

JPEG is color blind. Converting to a non-linear colorspace could be an unexpected transformation for our users whom might expect their linear image to remain linear when they write to a JPEG image. We instead take the raw pixel values and just pass them to the JPEG compressor. In practice and accor...
by Dabrosny
2017-09-10T19:27:34-07:00
Forum: Bugs
Topic: Result of -grayscale (or -colorspace gray) with a linear intensity becomes DARK if saved as JPEG (at least)
Replies: 5
Views: 2050

Re: Result of -grayscale (or -colorspace gray) with a linear intensity becomes DARK if saved as JPEG (at least)

Thanks for your timely response. we assume a nonlinear colorspace unless the colorspace is RGB, XYZ, or xyY. For grayscale we assume linear if the intensity option is Rec601Luminance or Rec709Luminance. Exactly, so when a Gray image has intensity attribute Rec601Luminance or Rec709Luminance internal...
by Dabrosny
2017-09-10T12:38:10-07:00
Forum: Bugs
Topic: Result of -grayscale (or -colorspace gray) with a linear intensity becomes DARK if saved as JPEG (at least)
Replies: 5
Views: 2050

Result of -grayscale (or -colorspace gray) with a linear intensity becomes DARK if saved as JPEG (at least)

For comparison, I'll start by showing a few of the related cases where IM automatically does the necessary conversion to the [non]linearity of the target output format. IM automatically (and correctly) converts linear RGB images to nonlinear when writing to a nonlinear sRGB format like JPEG: magick ...
by Dabrosny
2017-09-01T21:23:51-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 5898

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

I'm thinking maybe i should post the docu proposal as a new topic rather than it being buried here in the middle of page 3. If so, should it be here in bugs or perhaps in Developers?
by Dabrosny
2017-08-31T16:03:23-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 5898

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

I welcome Dabrosny's work on this. I can't check the proposed documentation as I don't have a recent version of IM (and won't in the near future). I don't know the answers to Dabrosny's questions (a) to (n). Thanks. Those q's were just meant to describe the motivation for my proposed documentation,...
by Dabrosny
2017-08-30T22:27:17-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 5898

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

But you said -intensity is unrelated to -grayscale. I didn't say they were unrelated, but I merely said "The behavior of -grayscale has no effect on the behavior of -intensity". In other words "-intensity" does what it does, whether or not "-grayscale" even exists or works correctly. Nevertheless, ...
by Dabrosny
2017-08-30T21:46:39-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 5898

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

Why would documentation change anything related to some potential bug report? Because a bug is when the software does not behave as intended, and without documentation we don't know what is intended. Until there is agreement on what the intensity image attribute (on a Gray image) does at all, I can...
by Dabrosny
2017-08-30T21:24:08-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 5898

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

(I haven't yet tried to change the documentation for the -grayscale operation because its behavior has an inconsistency that I'll probably submit as a bug report later, rather than merely documenting its current behavior.) Your issue was with -grayscale. But they both are intertwined internal to IM...