Search found 10490 matches

by snibgo
2018-08-15T04:38:35-07:00
Forum: Users
Topic: Advice on Black and White to Color Composite
Replies: 3
Views: 49

Re: Advice on Black and White to Color Composite

"identify -verbose" tells me the red and blue channels span 0 to 100%, more or less, but green doesn't. In addition, the mean values of all three channels is around 25% of their maximum, which suggests they are encoded as linear RGB, not sRGB. Windows BAT syntax. For bash, use \ for end-lines and es...
by snibgo
2018-08-15T03:53:34-07:00
Forum: Users
Topic: Video screen capture using image magick
Replies: 4
Views: 54

Re: Video screen capture using image magick

... but the output picture is blurry. Is the unresized frame blurry? Can you link to it? Video frames are often blurry, compared to still images. This may be due to movement, or the compromises of in-camera processing needed to record 30 frames/second. There are many possible ways to sharpen an ima...
by snibgo
2018-08-15T03:45:57-07:00
Forum: Bugs
Topic: Problems with -density if -unit PixelsPerInch not specificied before input image
Replies: 13
Views: 2876

Re: Problems with -density if -unit PixelsPerInch not specificied before input image

I can't reproduce your problem on IM v7.0.8-10. Please link to your source.jpg.
by snibgo
2018-08-14T18:32:52-07:00
Forum: Users
Topic: Video screen capture using image magick
Replies: 4
Views: 54

Re: Video screen capture using image magick

You can capture one frame, such as frame 100, of the video like this:

Code: Select all

magick myvid.mp4[100] out.png
by snibgo
2018-08-14T09:51:55-07:00
Forum: Users
Topic: How to disable policy on case by case basis?
Replies: 4
Views: 84

Re: How to disable policy on case by case basis?

Yes. Or create another installation of IM, with its own policy.xml.
by snibgo
2018-08-14T08:27:28-07:00
Forum: Bugs
Topic: Problems with -density if -unit PixelsPerInch not specificied before input image
Replies: 13
Views: 2876

Re: Problems with -density if -unit PixelsPerInch not specificied before input image

You've quoted the resolution but not the units. I note that 350 dpi = 889 dpcm.
by snibgo
2018-08-14T08:20:59-07:00
Forum: Users
Topic: How to disable policy on case by case basis?
Replies: 4
Views: 84

Re: How to disable policy on case by case basis?

policy.xml sets limits that can't be relaxed. Other mechanisms such as MAGICK_MEMORY_LIMIT apply extra limits, in addition to limits imposed by policy.xml.
by snibgo
2018-08-14T08:17:19-07:00
Forum: Users
Topic: Resize Image with restrictions
Replies: 3
Views: 75

Re: Resize Image with restrictions

So, you can make all your images 5000 by 5000 pixels and your customer will be happy? Maybe not.

I would do this in three steps:

1. Find the current size.

2. Do some processing to calculate the new size.

3. Resize, or crop, or whatever is wanted, to the new size.
by snibgo
2018-08-14T08:12:38-07:00
Forum: Users
Topic: How to pass a var into the "new" magick script engine ?
Replies: 2
Views: 55

Re: How to pass a var into the "new" magick script engine ?

For the changes within IM, including command line and internal IM scripting, see https://www.imagemagick.org/script/porting.php IM has no control over scripting facilities provided by your shell, eg bash or Windows CMD or Windows BAT. They will continue to work as before, and shells will translate e...
by snibgo
2018-08-13T10:42:49-07:00
Forum: MagickWand
Topic: convert multiple images to single pdf with library MagicWand
Replies: 1
Views: 54

Re: convert multiple images to single pdf with library MagicWand

Here's a wand program, but with no error-checking, that writes two images to a PDF: #include <MagickWand/MagickWand.h> int main(void) { MagickWandGenesis(); MagickWand *mw = NewMagickWand(); MagickReadImage(mw,"rose:"); MagickWand *aw = NewMagickWand(); MagickReadImage(aw,"toes.png"); MagickAddImage...
by snibgo
2018-08-13T04:44:29-07:00
Forum: IMagick
Topic: Set blending mode as "screen" and opacity to 50%
Replies: 4
Views: 71

Re: Set blending mode as "screen" and opacity to 50%

mjamal wrote:I need to know how to Set blending mode as "screen" for a single image...
I don't know what that means. If you set a blending mode for a single image, what do you expect to happen? Do you expect that this will change the image somehow?
by snibgo
2018-08-13T04:01:22-07:00
Forum: IMagick
Topic: Set blending mode as "screen" and opacity to 50%
Replies: 4
Views: 71

Re: Set blending mode as "screen" and opacity to 50%

At the command line, use "-compose Screen". In IMagick, the mode is a parameter of the compositeImage() function. See http://phpimagick.com/Imagick/compositeImage

To set opacity to anything, use "-evaluate set" at the command line, and evaluateImage() in IMagick.
by snibgo
2018-08-12T15:42:13-07:00
Forum: Users
Topic: I can't make this script to run in
Replies: 9
Views: 205

Re: I can't make this script to run in

1. Can I create a PDF file from the all pages I've just created in the code above using magick image code? If they all fit into memory at the same time: magick *.jpg out.pdf 2. Can I apply this type of code (the code from the 1st post) to a multiple page PDF file? I'm sick of spliting the PDF in mu...
by snibgo
2018-08-12T14:16:00-07:00
Forum: Users
Topic: I can't make this script to run in
Replies: 9
Views: 205

Re: I can't make this script to run in

As Fred says. I suggest you write your command using "magick" without "mogrify". When you have tested it, put it inside a "for" loop, eg "for %F in (*.jpg) do ....

Type "help for" for help.
by snibgo
2018-08-12T13:25:55-07:00
Forum: Users
Topic: Edit images of sub-folders in one attempt
Replies: 1
Views: 42

Re: Edit images of sub-folders in one attempt

You can use "for" to loop through directories, eg "for /R %D in (.) do ..."

Type "help for" for help.