Search found 718 matches
- 2019-03-31T11:53:27-07:00
- Forum: Users
- Topic: Trim whitespace from top and bottom of image and distort
- Replies: 3
- Views: 4614
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 ...
- 2019-03-22T13:25:01-07:00
- Forum: Users
- Topic: Adding a margin of repeated pixels around edges of image
- Replies: 4
- Views: 5299
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...
- 2019-03-22T12:34:53-07:00
- Forum: Users
- Topic: Vertical text on the right side.. I do not understand how?
- Replies: 2
- Views: 3865
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 ...
- 2019-03-07T15:03:41-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 10736
Re: Get image background color and create a new image
You might have to put quotes around the "%[w]x%[h]". I only tested it on Windows.
- 2019-03-07T14:58:34-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 10736
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...
- 2019-03-07T14:40:52-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 10736
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...
- 2019-02-25T08:01:14-07:00
- Forum: Users
- Topic: Resize and combine
- Replies: 4
- Views: 4471
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 backgrou...
- 2019-02-22T12:31:07-07:00
- Forum: Users
- Topic: Typewriter effect animation
- Replies: 3
- Views: 6498
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:"\ %%...
- 2019-02-20T19:49:48-07:00
- Forum: Users
- Topic: Typewriter effect animation
- Replies: 3
- Views: 6498
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 ...
- 2019-02-06T15:31:21-07:00
- Forum: Users
- Topic: make the size of the pictures the same as 1.png
- Replies: 6
- Views: 6952
- 2019-02-05T16:07:03-07:00
- Forum: Users
- Topic: make the size of the pictures the same as 1.png
- Replies: 6
- Views: 6952
Re: make the size of the pictures the same as 1.png
I have several jpg files I need to make them the same size as the 1.png file. convert 1.png -set option:original '%wx%h' -delete 0 *.jpg -resize '%[original]' '%d'.png Is it possible to solve this problem with just one line? You can resize all the "*.jpg" images to match either the width ...
- 2019-02-03T16:40:18-07:00
- Forum: Users
- Topic: Problem with distort the line in different areas
- Replies: 4
- Views: 4361
Re: Problem with distort the line in different areas
Thanks for the quick response So another solution would be to crop the region, do the swirl, then composite the processed image back. and practical advice. To crop an region, do some operations on it, then composite it back on the original as fmw42 suggested can be pretty simple. This command... ma...
- 2019-01-28T08:50:12-07:00
- Forum: Users
- Topic: Image Conversion Limited to 100 files? (Windows)
- Replies: 4
- Views: 4438
Re: Image Conversion Limited to 100 files? (Windows)
The command I am using is as follows: magick convert 3_?_?.* -shave 1x1 montage_%d.png This command works fine as long as the total number of input images are less than or equal to 100,... The Windows wildcard "?" substitutes for any single character. If the characters at those wildcard p...
- 2019-01-18T09:54:46-07:00
- Forum: Bugs
- Topic: IM7.0.8-24 - Invalid argument for option '-transparent-color'
- Replies: 1
- Views: 6325
IM7.0.8-24 - Invalid argument for option '-transparent-color'
Using ImageMagick 7.0.8-24 Q16 x64 HDRI on Windows 10. When running this command... magick logo: -transparent-color black info: I get this error... magick: invalid argument for option '-transparent-color' 'black' at CLI arg 2 @error/operation.c/CLISettingOptionInfo/1469. This occurs when using any c...
- 2019-01-15T12:40:02-07:00
- Forum: Users
- Topic: page count of a pdf file
- Replies: 5
- Views: 15981
Re: page count of a pdf file
Try something like this...
Code: Select all
convert document.pdf -set option:totpages %[n] -delete 1--1 -format "%[totpages]\n" info: