Search found 9587 matches

by snibgo
2018-01-17T04:39:14-07:00
Forum: Users
Topic: How to find ticket and crop it into a single image?
Replies: 12
Views: 2268

Re: How to find ticket and crop it into a single image?

I feel that I'm missing something simple, but important, at last stage. Yes. The first stage finds four lines, giving the coordinates of each end. Then you distort the image to move one end of the first line to the other end, and so on for the other lines. That makes no sense. A better idea is to f...
by snibgo
2018-01-17T02:50:56-07:00
Forum: Users
Topic: Resizing a Gray TIFF file - conversion to linear colorspace required?
Replies: 2
Views: 46

Re: Resizing a Gray TIFF file - conversion to linear colorspace required?

You mentioned the need to sharpen after downsizing. That should have triggered me to mention the work by Nicolas Robidoux and others, which does both operations together, by blending a linear resize with one with a further shift of gamma 3. The results are excellent. See Resampling with halo minimiz...
by snibgo
2018-01-16T21:57:25-07:00
Forum: Users
Topic: Resizing a Gray TIFF file - conversion to linear colorspace required?
Replies: 2
Views: 46

Re: Resizing a Gray TIFF file - conversion to linear colorspace required?

To be technically correct, you should resize in linear colorspace. Does it make any difference? I doubt it. The difference will show only where you have very high frequency data (ie rapidly changing pixels). I haven't tried the new "-colorspace LinearGray" yet, but that's probably the correct way. D...
by snibgo
2018-01-15T08:38:25-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 13
Views: 595

Re: MagickSetImageCompression not working

Here is a corrected program (for IM v6, not 7): #include <windows.h> // #pragma hdrstop // #pragma argsused #include "wand\MagickWand.h" int main(int argc, char* argv[]) { MagickWand *l_wand = NULL; MagickWandGenesis(); l_wand = NewMagickWand(); MagickReadImage( l_wand, "rose:"); MagickSetImageDepth...
by snibgo
2018-01-15T08:13:41-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 13
Views: 595

Re: MagickSetImageCompression not working

Re-read my post. I told you how to do it.
by snibgo
2018-01-15T06:26:15-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 13
Views: 595

Re: MagickSetImageCompression not working

The porting guide refers to the number of channels in memory, not in files.

Resizing will almost certainly introduce new colours, so your quantize is in the wrong place.

Similarly, you set the image type before doing any processing. It should be at the end, just before writing.
by snibgo
2018-01-13T17:02:13-07:00
Forum: Users
Topic: Check if an image has an alpha channel with IMv7
Replies: 9
Views: 172

Re: Check if an image has an alpha channel with IMv7

The "check last character is 'a'" method isn't bomb-proof, eg: f:\web\im>%IM%convert rose: -colorspace OHTA -format "%[channels]" info: ohta f:\web\im>%IM%convert rose: -colorspace OHTA -alpha set -format "%[channels]" info: ohtaa However, the only format that can record OHTA (as far as I know) is M...
by snibgo
2018-01-13T02:01:06-07:00
Forum: Users
Topic: Recolor Image and maintain shading
Replies: 7
Views: 149

Re: Recolor Image and maintain shading

The method I show keeps the same lightness. However, the finished result might seem lighter or darker, depending on various factors. My command include a sequence like: -colorspace HCL -channel R -evaluate set 75% +channel -colorspace sRGB This converts to HCL, sets the Hue channel to 75%, and conve...
by snibgo
2018-01-12T22:30:41-07:00
Forum: Users
Topic: Recolor Image and maintain shading
Replies: 7
Views: 149

Re: Recolor Image and maintain shading

I would work in HCL (Hue, Chroma, Lightness) colorspace. You want to change hues, without changing chroma or lightness? Yes? Red is at hue=0 degrees. Purple is at hue=75%. To make all the colour red: convert pile_resized.png -colorspace HCL -channel R -evaluate set +channel -colorspace sRGB r.png In...
by snibgo
2018-01-12T10:45:37-07:00
Forum: Users
Topic: Convert PDS image with mutliple channels into png/jpg
Replies: 4
Views: 111

Re: Convert PDS image with mutliple channels into png/jpg

ImageMagick V7 has the facility for storing more than 4 colour channels, so reading more than 4 channels from a PSD might be possible, in principle, at some time in the future.

In practice, don't hold your breath.
by snibgo
2018-01-12T00:30:32-07:00
Forum: Developers
Topic: Image Magik is having a hard time with 14 Bits Per Sample
Replies: 16
Views: 351

Re: Image Magik is having a hard time with 14 Bits Per Sample

Well, yes, "dcraw -e" extracts the JPEG from the NEF. This looks like the JPEG made by the camera, because it is the JPEG made by the camera. Why did you add mode="encode" to the delegates.xml line? I don't know how IM decides a NEF file should be treated as a DNG file. If you want to add your own e...
by snibgo
2018-01-11T23:49:15-07:00
Forum: Developers
Topic: Image Magik is having a hard time with 14 Bits Per Sample
Replies: 16
Views: 351

Re: Image Magik is having a hard time with 14 Bits Per Sample

The JPEG isn't the original. The converted raw is more "original" than the JPEG. To make the JPEG, the camera took the raw data and processed it in various ways. If you want to process the raw to make it the same as the JPEG, why not use the JPEG? What is wrong with the JPEG? Sorry, I don't understa...
by snibgo
2018-01-11T23:04:40-07:00
Forum: Developers
Topic: Image Magik is having a hard time with 14 Bits Per Sample
Replies: 16
Views: 351

Re: Image Magik is having a hard time with 14 Bits Per Sample

What do you mean by "the original one"? That image looks the same as the JPEGs embedded in the NEF -- brighter than the converted raw, with heavy clipping (pixels have gone whiter than white, so they are clipped at white). I show the clipping in red: http://snibgo.com/imforums/womannef_clp.jpg The v...
by snibgo
2018-01-11T22:21:48-07:00
Forum: Developers
Topic: Image Magik is having a hard time with 14 Bits Per Sample
Replies: 16
Views: 351

Re: Image Magik is having a hard time with 14 Bits Per Sample

f:\web\im>%IMG7%magick -verbose da.nef -resize 600x500 x2.jpg dcraw.exe -6 -w -W -O "C:/Users/Alan/AppData/Local/Temp/magick-904083W1XBE_DYrf.ppm" "C:/Users/Alan/AppData/Local/Temp/magick-9040Um3E8uoyNS3j" C:/Users/Alan/AppData/Local/Temp/magick-904083W1XBE_DYrf.ppm PPM 4284x2844 4284x2844+0+0 16-b...
by snibgo
2018-01-11T22:07:13-07:00
Forum: Developers
Topic: Image Magik is having a hard time with 14 Bits Per Sample
Replies: 16
Views: 351

Re: Image Magik is having a hard time with 14 Bits Per Sample

The NEF file you uploaded (a young woman in a large crowded room) has 4284x2844 pixels. But the verbose you showed has 8288x5520. So something is wrong somewhere. Converting that NEF with ImageMagick and dcraw, or directly with dcraw, gives virtually the same result. The result is very similar to th...