Search found 25563 matches

by fmw42
2010-05-04T10:21:27-07:00
Forum: Users
Topic: Using the Filename as Text on the image.
Replies: 16
Views: 41788

Re: Using the Filename as Text on the image.

Ohh, and one more thing, I actually need the image to get longer (as in, add a bar of white to the bottom) I can't cover anything on the image. try the windows equivalent of this: filename=`convert lena.jpg -ping -format "%t" info:` width=`convert lena.jpg -ping -format "%w" inf...
by fmw42
2010-05-04T09:57:59-07:00
Forum: Users
Topic: Using the Filename as Text on the image.
Replies: 16
Views: 41788

Re: Using the Filename as Text on the image.

see the windows reference I posted above. it has what you need. otherwise hopefully a windows expert can show you how to do that. the first line in windows is quite different from that in unix.
by fmw42
2010-05-04T09:53:31-07:00
Forum: Users
Topic: Count number of unique colors minus transparent one
Replies: 11
Views: 22328

Re: Count number of unique colors minus transparent one

see %A image alpha channel

and also

%[channels] list of channels (e.g. rgb or rgba etc)

at http://www.imagemagick.org/script/escape.php
by fmw42
2010-05-04T09:50:10-07:00
Forum: Users
Topic: output of convert pdf to jpg sometimes has wrong order
Replies: 2
Views: 4714

Re: output of convert pdf to jpg sometimes has wrong order

what IM version are you using? if old, try upgrading. post a link to an example that fails.
by fmw42
2010-05-04T09:49:11-07:00
Forum: Users
Topic: How to open Binary Image Format .bin
Replies: 2
Views: 5386

Re: How to open Binary Image Format .bin

what is the source of that format? you may need to find a delegate library to support it? if that does not exist, then you are out of luck unless you write your own reader or get the IM folks to do so. But they will need to be supplied with the format specs.
by fmw42
2010-05-04T09:44:36-07:00
Forum: Users
Topic: convert 16-bit tiff to 8-bit tiff
Replies: 3
Views: 17837

Re: convert 16-bit tiff to 8-bit tiff

post a link to your input image and report what version of IM you are using. what happens if you remove the -define?

What are the range of values in your tiff? If very low, then you may need to scale the result. try adding -auto-level to your command line before -depth 8
by fmw42
2010-05-03T18:34:48-07:00
Forum: Users
Topic: Cannot convert 32 bit floating point tif to 32 bit psd file
Replies: 3
Views: 7916

Re: Cannot convert 32 bit floating point tif to 32 bit psd f

I don't think PSD supports 32-bits per channel. You had better look into that? If it does, then you will likely need to be in IM HDRI mode. But I am not sure IM supports writing to 32-bits per channel PSD even if PSD supports it. I have only used MIFF, TIFF, MPC and PFM formats in 32-bits mode (for ...
by fmw42
2010-05-03T18:16:12-07:00
Forum: Users
Topic: Cannot convert 32 bit floating point tif to 32 bit psd file
Replies: 3
Views: 7916

Re: Cannot convert 32 bit floating point tif to 32 bit psd f

what do you mean by 32-bits? 32-bits = 8bits per channel (RGBA) or 32-bits per channel (RGBA each 32-bits) For 8-bits per channel=4x8 for RGBA, you only need Q8 IM or Q16 IM with -depth 8. Not sure that PSD supports 32-bits per channel? For full floating point 32-bits per channel (with fraction and ...
by fmw42
2010-05-03T17:43:48-07:00
Forum: Users
Topic: Using the Filename as Text on the image.
Replies: 16
Views: 41788

Re: Using the Filename as Text on the image.

In unix: filename=`convert lena.jpg -ping -format "%t" info:` convert lena.jpg -fill black -undercolor white \ -gravity southwest -annotate +0+0 "$filename" \ -gravity southeast -annotate +0+0 "abc001" lena_label.jpg http://www.fmwconcepts.com/misc_tests/lena_label.jpg ...
by fmw42
2010-05-03T16:49:00-07:00
Forum: Users
Topic: [HELP] Split closed black frames from an image
Replies: 14
Views: 25539

Re: [HELP] Split closed black frames from an image

I have updated the separate script to allow the optional use of a grid search rather than a precise search. This increases speed by up to about 2x. But if a good choice of grid spacing is not chosen, then either it will be slower than optimum (possibly as slow or slower than the precise method) or i...
by fmw42
2010-05-03T11:02:02-07:00
Forum: Bugs
Topic: bug in -average and -evaluate-sequence mean
Replies: 6
Views: 13552

bug in -average and -evaluate-sequence mean

IM 6.6.1-5 Q16 Mac OSX Tiger. I believe the algorithm for doing image averaging of more than two images in a sequence is incorrect. It looks like you are simply adding 0.5 time each image before adding to the previous result. The correct formula for sequential averaging is (1/i)*new + (1 - 1/i)*old,...
by fmw42
2010-05-02T21:25:46-07:00
Forum: Users
Topic: Which kind of edge function algorithm
Replies: 3
Views: 6012

Re: Which kind of edge function algorithm

I believe it is a convolution that is equivalent to subtracting a gaussian blur from the original image. MagickExport Image *EdgeImage(const Image *image,const double radius, ExceptionInfo *exception) { Image *edge_image; double *kernel; register long i; unsigned long width; assert(image != (const I...
by fmw42
2010-05-02T19:01:32-07:00
Forum: Users
Topic: "The command line is too long."
Replies: 4
Views: 11710

Re: "The command line is too long."

Depends upon how IM sees the information from the file? IM does not process one draw command per command line from the file, it would take all the draw commands from a simple text file and put them together as one long command line; unless you make new command lines for each draw command and use a t...
by fmw42
2010-05-02T18:41:45-07:00
Forum: Users
Topic: "The command line is too long."
Replies: 4
Views: 11710

Re: "The command line is too long."

Don't know. But it won't help as your Windows parser will likely see the whole file as one (too long) string anyway.

But you could write a script to loop over groups of commands writing to an mpc (memory mapped image) as a temp file. see http://www.imagemagick.org/Usage/files/#mpc
by fmw42
2010-05-02T11:57:39-07:00
Forum: Users
Topic: Issues with alpha layer, type, etc.
Replies: 5
Views: 13505

Re: Issues with alpha layer, type, etc.

see my bug report at viewtopic.php?f=3&t=16086 about misleading alpha values