Search found 701 matches

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: 1438

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: 3572

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: 3572

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: 3572

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: 2079

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: 2109

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: 2109

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: 2663

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.
by GeeMack
2019-02-05T16:07:03-07:00
Forum: Users
Topic: make the size of the pictures the same as 1.png
Replies: 6
Views: 2663

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 or height ...
by GeeMack
2019-02-03T16:40:18-07:00
Forum: Users
Topic: Problem with distort the line in different areas
Replies: 4
Views: 1990

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...
by GeeMack
2019-01-28T08:50:12-07:00
Forum: Users
Topic: Image Conversion Limited to 100 files? (Windows)
Replies: 4
Views: 1796

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 positions i...
by GeeMack
2019-01-18T09:54:46-07:00
Forum: Bugs
Topic: IM7.0.8-24 - Invalid argument for option '-transparent-color'
Replies: 1
Views: 1791

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...
by GeeMack
2019-01-15T12:40:02-07:00
Forum: Users
Topic: page count of a pdf file
Replies: 5
Views: 8829

Re: page count of a pdf file

ddodson001 wrote:
2019-01-15T09:36:47-07:00
Any idea how I get this to return just '16'?
Try something like this...

Code: Select all

convert document.pdf -set option:totpages %[n] -delete 1--1 -format "%[totpages]\n" info:
by GeeMack
2019-01-14T14:14:34-07:00
Forum: Users
Topic: Remove grey background and turn it transparent
Replies: 6
Views: 2593

Re: Remove grey background and turn it transparent

Using IM 7.0.8-23 Q16 x64 HDRI on Windows 10 and the sample PNG image linked in the OP, and using these commands... magick convert JnNBtpX.png -fuzz 50% -transparent "#c0c0c0" 0.png magick JnNBtpX.png -fuzz 50% -transparent #c0c0c0 x2.png ... the results appear completely black when viewed with Irfa...
by GeeMack
2019-01-05T12:53:56-07:00
Forum: Users
Topic: Crop one image, montage with another
Replies: 4
Views: 1989

Re: Crop one image, montage with another

Need to remove 300x80 pxl part in the middle of 1.jpg and replace it with the middle part of 2.jpg The solution offered above by fmw42 is about as simple as it gets. Here's an example of the same concept arranged in a slightly different order... convert 2.jpg -gravity center -crop 300x80+0+0 1.jpg ...