Search found 289 matches
- 2011-06-27T05:25:14-07:00
- Forum: Users
- Topic: Windows: Jscript convert result not same as cmd convert
- Replies: 3
- Views: 8444
Re: Windows: Jscript convert result not same as cmd convert
Your sample code is rather sparse. Are you trying to run it in your browser or as a script for the Windows Script Host?
- 2011-06-25T10:17:41-07:00
- Forum: Users
- Topic: Adding text to video frames?
- Replies: 8
- Views: 19147
Re: Adding text to video frames?
If you are working under Windows, you should give AVIsynth a try, which is a more convenient than IM when it comes to video processing. Use VirtualDub as the Interface and AvSP as the Editor. The way to achieve what you are trying to do would be the runtime function ScriptClip or ConditionalReader. ...
- 2011-06-19T11:50:31-07:00
- Forum: Users
- Topic: Run hidden
- Replies: 3
- Views: 8550
Re: Run hidden
To get things straight: Autohotkey is a Windows program which allows simple automisation for GUI programs, even if these offer no keyboard interface. Hiding a command window (in fact, any window) is a feature of the Autohotkey command language and has nothing to do with ImageMagick. Now that Elapido...
- 2011-06-09T21:48:07-07:00
- Forum: Users
- Topic: ImageMagick command line
- Replies: 2
- Views: 6637
Re: ImageMagick command line
See http://www.imagemagick.org/Usage/windows/#conversion for general hints on how to convert Unix command lines and scripts into their Windows / DOS equivalent. The section http://www.imagemagick.org/Usage/windows/#filenames gives hints on what to do about filenames containing blanks.
- 2011-06-08T06:23:09-07:00
- Forum: Users
- Topic: Turning a black and white sketch into a red and white sketch
- Replies: 6
- Views: 16260
Re: Turning a black and white sketch into a red and white sk
I've just seen Anthony's solution for the cow picture at http://www.imagemagick.org/Usage/color_ ... vel-colors. Thus the easiest solution is
convert %1 +level-colors red, %~n1.png
which spares the double-negation.
convert %1 +level-colors red, %~n1.png
which spares the double-negation.
- 2011-06-07T23:47:02-07:00
- Forum: Users
- Topic: Scaling with the -fx operator
- Replies: 7
- Views: 17286
Re: Scaling with the -fx operator
I follwed Fred's suggestion and succeeded with the following batch command line: convert %1 +distort SRT "%%[fx:%3/%2]%% 0" %~n1_scaled%~x1 (I had gone for -resize instead of -scale before, because I had been insecure where to put the percent signs for the scaling.) Anthony's suggestion co...
- 2011-06-07T23:27:53-07:00
- Forum: Users
- Topic: Turning a black and white sketch into a red and white sketch
- Replies: 6
- Views: 16260
Re: Turning a black and white sketch into a red and white sk
Based on your instructions, I now used the +level-colors operator (which I didn't known so far) and succeeded. I turned black lines on white canvas into red ones on white canvas by: convert grayscale.jpg -negate +level-colors ,cyan -negate red.png I will have to look up what I am actually doing ther...
- 2011-06-07T13:03:01-07:00
- Forum: Users
- Topic: Scaling with the -fx operator
- Replies: 7
- Views: 17286
Scaling with the -fx operator
I am trying to turn two vector sketch drawings into two raster images with the same scale. In both raster images I measure the length of a horizontal object and get a result of x which should correspond to n pixels. The width w' of the resulting image should be w' = w * n / x with w being the with o...
- 2011-06-07T12:50:14-07:00
- Forum: Users
- Topic: Turning a black and white sketch into a red and white sketch
- Replies: 6
- Views: 16260
Turning a black and white sketch into a red and white sketch
I often have to overlay different black and white line drawings in order to compare them. I have done this with Photoshop so far: 1) Turn the vector drawing into a grayscale pixel format. 2) Negate the drawing, such that I have white lines on black canvas. 3) Turn it into a RGB image. 4) Switch off,...
- 2011-06-06T13:50:13-07:00
- Forum: Users
- Topic: Correcting for a curved film plane?
- Replies: 62
- Views: 171696
Re: Correcting for a curved film plane?
Looks like the fence is perfectly straight now, so we got our mathematics probably correct ;-) And yes, I forgot that we need the inverse transformation for the mapping. I think that the cylindrical projection is a standard projection that should be included in the -distort option. It is one of the ...
- 2011-06-06T03:42:09-07:00
- Forum: Users
- Topic: Correcting for a curved film plane?
- Replies: 62
- Views: 171696
Re: Correcting for a curved film plane?
Hello everybody, the transformation we need over here is illustrated by: http://www.unfallrekonstruktion.de/imagemagick/cylindrical_coordinates.png The angle in x-direction is just phi = x/r, and x' = r * tan(phi) , which gives x' = r tan(x/r). For the y-direction we apply the theorem of intersectin...
- 2011-06-01T15:31:44-07:00
- Forum: Users
- Topic: executing the imagemagick commands in batch file
- Replies: 5
- Views: 14271
Re: executing the imagemagick commands in batch file
I can't see what's wrong with your batch file, aside from the two percent signs (50%%) as Anthony said already. At http://www.imagemagick.org/Usage/windows/#debugging I give a few hints on debugging batch files. As a start, I would recommend starting it within a DOS box, such that you have some feed...
- 2011-05-29T02:14:02-07:00
- Forum: Developers
- Topic: Density and Other Settings Specification for future IMv7
- Replies: 4
- Views: 11998
Re: Density and Other Settings Specification for future IMv7
I would just skip its use in set (override) the density attribute on images being read in as it only causes confusion, IMHO. This use can always be substituted by setting the density after having read the image. This would also point out that setting the density is not an operation on the image but ...
- 2011-05-26T11:00:03-07:00
- Forum: Users
- Topic: convert -density does not work for this image...
- Replies: 5
- Views: 14222
Re: convert -density does not work for this image...
I think your problems result from the fact that the resolution of src.jpg is 72 Pixels per centimeter (and not inch, as usual). IM seems to multply the density by 2.54. As far as I can see, this is a slight bug in IM, as you cannot influence this behaviour. The workaround would be to calculate the d...
- 2011-05-25T09:05:16-07:00
- Forum: Users
- Topic: Use of command line label:@ syntax with Windows
- Replies: 1
- Views: 4773
Re: Use of command line label:@ syntax with Windows
The label syntax works just fine under Windows, too, see http://www.imagemagick.org/Usage/windows/#character_encoding . Try also Convert test.png -pointsize %ps% -fill %color% -gravity %gravity% -annotate +0+0 @title.txt test_with_label.png with %...% being some previous set environment variables. T...