Search found 678 matches

by GeeMack
2019-04-11T07:49:19-07:00
Forum: Users
Topic: How to get image's info through the starting the app?
Replies: 2
Views: 298

Re: How to get image's info through the starting the app?

But now I have to get an information about image to the info.txt. I am trying to write something like this: start C:\ImageMagick\magick.exe -format "%wx%h" >d:\info.txt d:\Image.jpg The file d:\info.txt is overwritten, but there is no data. With IM version 7 you need to put the input image near the...
by GeeMack
2019-04-10T21:15:16-07:00
Forum: Users
Topic: Rule of thumb: When to use +repage?
Replies: 7
Views: 498

Re: Rule of thumb: When to use +repage?

Typically you might need +repage for commands that change the image size, such as rotation, distortion, and especially crop and trim. I do not think resize needs it. At least I have never needed it for that kind of operation. Also -layers merge needs it. I also usually do a "+repage" after "-append...
by GeeMack
2019-04-09T07:25:22-07:00
Forum: Users
Topic: How to crop by aspect ratio?
Replies: 4
Views: 420

Re: How to crop by aspect ratio?

Landscape: 1.91:1 Portrait: 4:5 Can I tell IM to crop only if the image is beyond these aspect ratios? You should always include the version of IM you're using and which platform you're running it on. With most recent versions you can crop to a particular aspect ratio using "-extent" like this... m...
by GeeMack
2019-04-08T22:46:34-07:00
Forum: Users
Topic: [solved] Reverse polar coordinates?
Replies: 8
Views: 608

Re: Reverse polar coordinates?

Just curious if anyone knows if there is a straight forward way of flipping that? So the sky is on the inside and the land on the outside? Rotate the image 180 degrees before the "-distort arc". Then you rotate it back the other way by adding a second argument to the "-distort arc" operation. ... -...
by GeeMack
2019-04-03T12:42:58-07:00
Forum: Bugs
Topic: IM 7.0.8-36 "-virtual-pixel mirror" broken
Replies: 2
Views: 384

IM 7.0.8-36 "-virtual-pixel mirror" broken

ImageMagick 7.0.8-36 Q16 x64 HDRI on Windows 10. This command produces no output image, no warnings, and no errors... magick wizard: -virtual-pixel mirror ^ -distort affine "0,640 0,640 480,640 480,640 0,0 480,0" wizard.png Changing the virtual-pixel setting to anything other than "mirror" produces ...
by GeeMack
2019-03-31T11:53:27-07:00
Forum: Users
Topic: Trim whitespace from top and bottom of image and distort
Replies: 3
Views: 598

Re: Trim whitespace from top and bottom of image and distort

convert original.png +repage -crop 1x -trim -resize 1x256\! out.png montage out-*.png -geometry 1x -tile x1 montage.png Seems to be working ok, but I have a bunch of odd artefacts at regular intervals through the image. Can't work out whether this is a problem with the montaging or the cropping! I ...
by GeeMack
2019-03-22T13:25:01-07:00
Forum: Users
Topic: Adding a margin of repeated pixels around edges of image
Replies: 4
Views: 775

Re: Adding a margin of repeated pixels around edges of image

The image is 4054 pixels wide/high and want to resize to 4096, with the edges filled in with the repeating pixels. I think I found the key at: http://www.imagemagick.org/discourse-server/viewtopic.php?t=34525 I'm just not quite sure how to apply that to my use case just yet. I'm guessing this would...
by GeeMack
2019-03-22T12:34:53-07:00
Forum: Users
Topic: Vertical text on the right side.. I do not understand how?
Replies: 2
Views: 620

Re: Vertical text on the right side.. I do not understand how?

In the picture on the left side, the text is obtained using the command: convert input.jpg -set option:my:left_edge '0,%[fx:h/2]' \ \( -font '/var/www/photos/fonts/10051.ttf' -pointsize 50 -background none label:'Long Long Text Here' \ +distort SRT '%[fx:w/2],%h 1 90 %[my:left_edge]' \ \) -flatten ...
by GeeMack
2019-03-07T15:03:41-07:00
Forum: Users
Topic: Get image background color and create a new image
Replies: 13
Views: 1779

Re: Get image background color and create a new image

sabyamon wrote:
2019-03-07T15:02:02-07:00
I am getting this when I run this my terminal.
convert original.png -set option:distort:viewport %[w]x%[h] -resize 1x1 -distort SRT 0 otter.png
zsh: no matches found: %[w]x%[h]
You might have to put quotes around the "%[w]x%[h]". I only tested it on Windows.
by GeeMack
2019-03-07T14:58:34-07:00
Forum: Users
Topic: Get image background color and create a new image
Replies: 13
Views: 1779

Re: Get image background color and create a new image

For now, I can deal with passing the image dimension as a parameter to the command. You can use the image dimensions in a single command with IM6 using a command like this... convert input.png -set option:distort:viewport %[w]x%[h] -resize 1x1 -distort SRT 0 out.png That will output an image the sa...
by GeeMack
2019-03-07T14:40:52-07:00
Forum: Users
Topic: Get image background color and create a new image
Replies: 13
Views: 1779

Re: Get image background color and create a new image

I think I need to downgrade IM version to ImageMagick 6.7.8-9 (for some organizational and OS requirements). So, want to make sure the magick command will work on that version too. If you're limited using IM6, a command like this will create the solid colored output the same dimensions as the input...
by GeeMack
2019-02-25T08:01:14-07:00
Forum: Users
Topic: Resize and combine
Replies: 4
Views: 1221

Re: Resize and combine

resize background-pic width and height to max (width(pic1),height(pic1) place pic1 centered on resized background-pic output to pic1_new Check snibgo 's suggestion for a simple way to composite your input image over a square background. Here's a way to use "-extent" to expand the background to a "m...
by GeeMack
2019-02-22T12:31:07-07:00
Forum: Users
Topic: Typewriter effect animation
Replies: 3
Views: 1233

Re: Typewriter effect animation

Here's a complete Windows BAT script using IM7 to accomplish the entire task... @echo off setlocal enabledelayedexpansion set FONT=courbd.ttf set POINTS=18 set COUNT=0 for /f "tokens=*" %%L in ( textfile.txt ) do ( magick ^ -font %FONT% ^ -pointsize %POINTS% ^ -kerning 1 ^ label:"\ %%L " ^ label:"XX...
by GeeMack
2019-02-20T19:49:48-07:00
Forum: Users
Topic: Typewriter effect animation
Replies: 3
Views: 1233

Re: Typewriter effect animation

Ideally I would like to be able to read text from a .txt file (including line breaks) and have each character or word be appended and appear one character or word per image file. I've done similar tasks with animated text, so from my experience here's a concept to "type" a single line of text using...
by GeeMack
2019-02-06T15:31:21-07:00
Forum: Users
Topic: make the size of the pictures the same as 1.png
Replies: 6
Views: 1861

Re: make the size of the pictures the same as 1.png

Nezar wrote:
2019-02-06T09:11:12-07:00
But can you somehow find out the name of the first file in the set * .jpg?
not to write 1.png manually, but to take it automatically.
I don't understand what you're trying to do. Maybe you can describe what you want step by step.