Search found 718 matches

by GeeMack
2018-09-25T07:09:11-07:00
Forum: Users
Topic: Modifying a list of images
Replies: 3
Views: 4229

Re: Modifying a list of images

I have a list of these images and their locations in a txt file. Is there a way to run this script in batch for these specific images in the txt file? If the text list has full path file names, you can have IM read that list by preceding it with "@". Then when setting the file name in you...
by GeeMack
2018-09-22T06:52:58-07:00
Forum: Users
Topic: Error with "magick convert"
Replies: 9
Views: 20970

Re: Error with "magick convert"

Awlwot wrote: 2018-09-22T03:36:41-07:00Any idea how I could fix this 3285 error?
Your command doesn't have an output file name.

And as Bonzo mentioned, when you're using IM7 you should be using the command "magick" not "magick convert".
by GeeMack
2018-09-20T16:50:23-07:00
Forum: Users
Topic: Getting the color of a pixel
Replies: 17
Views: 13338

Re: Getting the color of a pixel

or I presume in Windows, this will work without the quotes, but someone should check that out. magick KEWX_L2_VEL_colorized.gif -transparent # %[ hex :p{0,3769}] KEWX_L2_VEL_colorized.gif That works in Windows with or without the quotes. Either way requires doubling the percent sign if used in a BA...
by GeeMack
2018-09-20T14:25:20-07:00
Forum: Users
Topic: Getting the color of a pixel
Replies: 17
Views: 13338

Re: Getting the color of a pixel

magick KEWX_L2_VEL_colorized.gif -transparent #4BCB2AFF KEWX_L2_VEL_colorized.gif This works when I manually type it, but I should be able to inject the variable in there to automate it somehow. Since you're using IM7, in many cases you can do this sort of thing as a single command by reading the p...
by GeeMack
2018-09-11T15:33:27-07:00
Forum: Users
Topic: how I could reduce this command for output only one image ?
Replies: 6
Views: 5121

Re: how I could reduce this command for output only one image ?

I have this code and this output two images ; how I could do for output 1 image [...] reduce this two command to one command One of the simplest ways to combine commands is by isolating the various parts inside parentheses. Here's an example using your commands... convert z1.gif \( -clone 0--1 -mor...
by GeeMack
2018-09-04T22:33:18-07:00
Forum: Users
Topic: How to stretch an image non-linearly in one dimension (à la Gopro Superview)
Replies: 12
Views: 9738

Re: How to stretch an image non-linearly in one dimension (à la Gopro Superview)

I'm trying to recreate the "Superview" effect of a go-pro camera in linux, from a camera that doesn't have this ability. [...] Any help or hints would be greatly appreciated. Another approach is to crop the image into vertical strips, use "+distort" to scale those strips progres...
by GeeMack
2018-09-04T16:38:13-07:00
Forum: Users
Topic: How to stretch an image non-linearly in one dimension (à la Gopro Superview)
Replies: 12
Views: 9738

Re: How to stretch an image non-linearly in one dimension (à la Gopro Superview)

I'm trying to recreate the "Superview" effect of a go-pro camera in linux, from a camera that doesn't have this ability. [...] Any help or hints would be greatly appreciated. I can get the basic effect you describe by cropping a 1440x1080 image into halves, running two distortions on the ...
by GeeMack
2018-09-03T12:47:37-07:00
Forum: Bugs
Topic: Problem with "gradient:[WxH]" - IM7.0.8-11
Replies: 2
Views: 7656

Re: Problem with "gradient:[WxH]" - IM7.0.8-11

This problem also occurs with ImageMagick 6.9.10-11 Q16 x64 HDRI. These three commands should produce gradients, but instead the outputs are an all white square, an all red square, and an all yellow square... convert gradient:[100x100] test1.png convert gradient:red-yellow[100x100] test2.png convert...
by GeeMack
2018-08-31T21:59:57-07:00
Forum: Bugs
Topic: Problem with "gradient:[WxH]" - IM7.0.8-11
Replies: 2
Views: 7656

Problem with "gradient:[WxH]" - IM7.0.8-11

Using ImageMagick 7.0.8-11 Q16 x64 HDRI on Windows 10... I'm getting unexpected results creating gradients using square brackets to specify the canvas size like this... magick gradient:[200x200] test.png It generates an all white image, no gradient. These commands also show the problem... magick gra...
by GeeMack
2018-08-27T10:03:45-07:00
Forum: Users
Topic: choose starting frame (different than frame 0) for a GIF
Replies: 4
Views: 6242

Re: choose starting frame (different than frame 0) for a GIF

Assuming my sequence si 90 frames and I wan it to start at frame 7 how would you adapt your code into mine? The "( -clone 0-7 ) -delete 0-7 +insert" part of my example should be right after your command reads in the images... magick ... *.png ( -clone 0-7 ) -delete 0-7 +insert ... output....
by GeeMack
2018-08-25T20:09:40-07:00
Forum: Users
Topic: choose starting frame (different than frame 0) for a GIF
Replies: 4
Views: 6242

Re: choose starting frame (different than frame 0) for a GIF

Ideally I'd like to have a way to set in the bat file the starting frame for the GIF and still loop through all provided images from the png sequence. If you can set your desired starting frame number as a variable or an argument to your script, you can easily re-order the images when you read them...
by GeeMack
2018-08-20T08:04:17-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 14686

Re: extracting biggest square from a rotated image

manit wrote: 2018-08-20T07:11:35-07:00But in such cases also i have observed a white triangle in corner of image .
The command you've been using works perfectly. The sample image you provided has a 32 pixel high strip of white along the bottom edge. That's what makes the white triangle in your output.
by GeeMack
2018-08-17T11:46:29-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 14686

Re: extracting biggest square from a rotated image

manit wrote: 2018-08-17T06:08:09-07:00... there was triangular cut in all four corners . see https://ibb.co/gkjVtK
Looks like you rotated your image 45 degrees, but the calculation in your command is for a square rotated 15 degrees.
by GeeMack
2018-08-16T09:20:33-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 14686

Re: extracting biggest square from a rotated image

$ file f0001_01.png f0001_01.png: PNG image data, 512 x 512, 8-bit grayscale, non-interlaced $ convert f0001_01.png -rotate 15 -set option:leg "%[fx:512/(cos(15*(pi/180))+sin(15*(pi/180)))]" -set option:distort:viewport "%[leg]x%[leg]" \( -clone 0 -distort srt 0 \) -gravity cent...
by GeeMack
2018-08-15T08:42:52-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 14686

Re: extracting biggest square from a rotated image

Let's say my 512x512 image is a fingerprint. How can I pass that image as input to bash command you have mentioned ? As long as your input image is square, you can just put its name in the command where I used "-size ${squ}x${squ} xc:green" in my example, and where I used the variable &qu...