Search found 11 matches

by carl
2018-10-03T22:10:58-07:00
Forum: Users
Topic: Image Resize is ignoring Gamma
Replies: 8
Views: 4930

Re: Image Resize is ignoring Gamma

ImageMagick, like many image-processing programs, strives to be quick and accurate. It assumes users understand what they are asking for. Hence most operations perform simple arithmetic on the pixel data, without fussing about metadata. It resizes (and does other operations) in the current colorspa...
by carl
2018-10-03T20:07:28-07:00
Forum: Users
Topic: Image Resize is ignoring Gamma
Replies: 8
Views: 4930

Re: Image Resize is ignoring Gamma

That's a cute image. So there are two interleaved source images, at two different gammas. A viewer sees either the Keurig image correctly and the woman image as black, or the woman correctly and Keurig as white. Adjacent pixels have no relationship to each other because they are from two different ...
by carl
2018-10-02T22:37:35-07:00
Forum: Users
Topic: Image Resize is ignoring Gamma
Replies: 8
Views: 4930

Re: Image Resize is ignoring Gamma

Conversion between sRGB and RGB is approximately a gamma conversion, but a bit more complicated. sRGB doesn't have a gamma of 0.02. sRGB gamma is 1.0/2.2. So your input isn't sRGB. I think "-colorspace RGB" should fail, because IM should recognise that the input isn't sRGB or any other kn...
by carl
2018-10-02T03:34:31-07:00
Forum: Users
Topic: Image Resize is ignoring Gamma
Replies: 8
Views: 4930

Re: Image Resize is ignoring Gamma

Resizing, like almost all operations, is independent of gamma. The same input pixel values will give the same output pixel values, whatever the gamma metadata setting. The gamma setting will be copied from input to output. I'm not sure what you want to happen. Perhaps you want to adjust the gamma t...
by carl
2018-10-01T23:53:06-07:00
Forum: Users
Topic: Image Resize is ignoring Gamma
Replies: 8
Views: 4930

Image Resize is ignoring Gamma

I have a picture with an unusually low Gamma value that I am trying to resize. The command I am using: convert /tmp/in.png -colorspace RGB -resize 160x160 -colorspace sRGB /tmp/out.png Normally PNG files have a Gamma of about .45, but this image has a Gamma of 0.02. I tried to compensate for this by...
by carl
2018-07-25T22:39:21-07:00
Forum: Users
Topic: Thumbnail creation from user uploaded images
Replies: 10
Views: 4476

Re: Thumbnail creation from user uploaded images

The part I think is wrong (or at the very least confusing) is that setting the image page to remove the offset didn't actually remove the offset. Which of your results shows that? For example, you use SetImagePage(w, h, 0, 0) on newmw, and the page offsets are correctly shown as 0,0. When you crop ...
by carl
2018-07-24T21:51:05-07:00
Forum: Users
Topic: Thumbnail creation from user uploaded images
Replies: 10
Views: 4476

Re: Thumbnail creation from user uploaded images

I'm not familiar with Go or IMagick, but the code seems clear. The output is what I would expect. What do you think is wrong? Perhaps this line: clone: w=100 h=200 x=300 y=400 That line reports on newmw2, which is an unchanged clone of mw2, which hasn't been changed since the "start" repo...
by carl
2018-07-23T20:30:41-07:00
Forum: Users
Topic: A quick question about convert
Replies: 3
Views: 2116

Re: A quick question about convert

At least on Linux, the convert command is a symlink to the magick binary. You could just rename the binary, or make windows symlinks to it.

My guess is that the binary inspects argv[0] to see what its name is, and then does the right thing.
by carl
2018-07-23T20:22:08-07:00
Forum: Users
Topic: Thumbnail creation from user uploaded images
Replies: 10
Views: 4476

Re: Thumbnail creation from user uploaded images

http://www.imagemagick.org/Usage/resize/#resize_lab says: ... in linear colorspace like RGB (or LAB or LUV). Yes, RGB is linear. (I generally call it "linear RGB" to be clear.) But LAB and LUV are not. LAB and LUV are more perceptually uniform than sRGB or linear RGB, or AdobeRGB etc. (In...
by carl
2018-07-23T03:58:15-07:00
Forum: Users
Topic: Thumbnail creation from user uploaded images
Replies: 10
Views: 4476

Re: Thumbnail creation from user uploaded images

Thank you for the response. More direct responses inline: What is the the difference between Properties, Profiles, Artifacts and Options? A property (and an artifact) has a single key with a value. The value can be any size, but is typically a few bytes. Can you clarify the difference? They appear t...
by carl
2018-07-22T22:34:55-07:00
Forum: Users
Topic: Thumbnail creation from user uploaded images
Replies: 10
Views: 4476

Thumbnail creation from user uploaded images

Hi, I am trying to make a program to create thumbnail images from user provided input images. I had some questions regarding how to do this. Generally speaking, I would prefer the images to be small, square images in the same file format as the input image. I am using the MagickWand API, through a G...